Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pronunciation for names and destinations (valhalla#3132)
* added GetPronunciationsMap() and only_pronunciations to GetTaggedNames and pronunciation logic. * updated getsign logic for pronunciations * updated call to addedgeinfo * added logic to process pronunciation_file and pronunciations. * updated call to .GetNamesAndTypes * updated call to addedgeinfo * added logic to write out pronunciations. Using tagged bit on signs now. * updated call to addedgeinfo * added logic to process pronunciations for ways. * added logic to parse pronunciations. Nodes data saved to existing node file. Way data is saved to new pronunciation file * updated call to addedgeinfo * updated call to addedgeinfo * just temp printing out pronunciations * updated call to addedgeinfo * added new pronunciation file * added new kVerbal type. * tagged bit is now in use. * added is_tagged_, has_phoneme_, phoneme_start_index_, and phoneme_count_. A sign can have multiple phoneme types. * updated comment * added pronunciations to AddEdgeInfo * added pronunciation indexes. * added pronunciation_file * init copy * init copy * lint * Added verbal type and value to street name and sign element * clean up temp files * added Jeita. * updated GetPronunciationsMap(). Data is now separated by a #. Updated GetNamesAndTypes to include tagged types but not verbals * updated to kJeita. * getsigns should of returned a unordered_multimap. delimeter is now #. * delimeter is now #. * added name and ref set/get for jeita. * added logic for jeita. * added jeita indexes and accessor functions. * added logic to set the jeita information. * added types * added logic to parse jeita information. * clean up * added logic to reference tagged names from the pronunciation map * updated to use new function signatures. * allow name nodes for netherlands only for testing * updated to use new function signatures. * new tests. * removed verbal info from sign * Added new Pronunciation message Added Pronunciation to StreetName and TripSignElement * refactored naming to match * format fix * refactrored for name consistency * name refactor * rename GetPronunciationsMulitMap * missed one * added GetPronunciationsMap * updated to use edgeinfo.GetPronunciationsMap * reordered. * refactor * Assign the street names pronunciations if they exist * Updated StreetNamesToString and StreetNamesToParameterString * updated test routes * Added the GraphTile::GetSigns method using unordered_map for the index_pronunciation_map * Changed the name of the internal GetSigns method to ProcessSigns * update comment * fix conflict * Added the PopulateSignElement method which will populate sign pronunciation values Refactored to use the PopulateSignElement method * Added debug output for sign_element pronunciation * GetPronunciationsMultiMap() no longer needed. emplace does not allow updates. * added logic for signs_on_node check. * fixed bug where destination_ref_to were not getting added with phonemes * updated and added more tests. * updated comment * route num = true means phoneme is for the node. * fixed xsampa bug. * lint * changed to nt-sampa * lint * Added pronunciation class Added pronunciation class to the street name and sign classes * added maneuver street name debug output * Assigned pronunciation to the signs * update for street names debug * Assigned pronunciation to street names in the maneuvers builder * clan-tidy updates. * clang tidy updates. * clang tidy updates. * Updated the DirectionsBuilder to assign the street name and sign pronunciations Added gurka test to verify the street name and sign pronunciations * Added another RAD test * lint * Update graphtilebuilder.cc * Update graphtilebuilder.cc * jeita --> x-jeita and katakana --> x-katakana * Added MarkupFormatter class Added phoneme markup for street names * fixed format * lint * added config options for markup_formatter * Added markup support for signs * Verify toward sign pronunciation instructions Also, fixed location for right side of street driving * Test exit number, exit onto street, and street name pronunciation instructions * Test ref and destination:ref pronunciation * Added tests for destination:street:to and destination:ref:to * added the CheckGuideSigns test * Added the CheckJunctionName test * fixed typo * cleanup refactor * Updated the quotes format and gurka tests * refactor for multicue * refactor markup formatter * refactor FormatPhonemeElement * Added 3132 to changelog * update submodules * example for how to handle nuls in strings by computing the width of each n ame info entry * eagle eye duane * so much simpler * debugging wrong data in hierarchybuilder * added logic to get the pronunciations * updated init of the struct * updated output. * added pronunciation to the osrm serializer * fixed issue where we were adding extra null chars * added kNone. * moved language to the top as kNone is set to 1. * added kNone for PronunciationAlphabet Language * format * fixed debug output * removed kNone from proto pronunciation alphabet * only read to end of the pronunciation using the header.length_ * refactored to use new structure for phonemes * save data out in new phoneme structure. * updated to support new structure * removed name.size() > 1 logic and clean up * added comment * reduced some code. moved logic to AddPronunciation * cleanup * added AddPronunciation and renamed BuildPronunciations * lint * lint * should start at IPA * refactor PronunciationAlphabetToString * Refactor Pronunciation_Alphabet_Name * account for empty phonemes * cp paste fail * counts and begin indexes were off for pronunciations for signs when there are blank pronunciations.../valhalla/mjolnir/graphbuilder.h * added count * added tests for missing pronunciations for signs. * removed unused code. * adding more name check for blank names * added TODO and addressed index issue. * removed debug statements. * added blank name testing. * updated to include OSM pronunciation tags * updated. * cleanup Co-authored-by: Duane Gearhart <[email protected]> Co-authored-by: Kevin Kreiser <[email protected]>
- Loading branch information