Welcome guest, is this your first visit? Click the "Create Account" button now to join.
Page 2 of 9 FirstFirst 1234 ... LastLast
Results 11 to 20 of 84
  1. #11
    Important User

    osiris4isis's Avatar
    Join Date
    Apr 2012
    Location
    Farside of the Sun
    Posts
    2,646
    Rep Power
    639

    Default

    Ok, since lua TTS configuration is some sort of regular expression used and assuming map engine return "RTE-ddd" or "RTE ddd", try this
    Spoiler: .

    This post requires you to click the "LIKE this post" button and hit F5 to read this content.
    "You know the very powerful and the very stupid have one thing in common. They don't alter their views to fit the facts. They alter the facts to fit the views." -DrWho

    Do NOT PM me with requests or for fixes to your problem. Post in thread instead. All communications in English only!

  2.    Advertissements


  3. #12
    Member +
    Join Date
    Mar 2016
    Location
    Alaska
    Posts
    42
    Rep Power
    2

    Default

    Add a + between the closing bracket and the closing parenthesis (the closing bracket after 9)
    Last edited by noikokyra; 2nd August 2016 at 09:11.

  4. #13
    Senior Member
    Join Date
    Dec 2010
    Location
    NA
    Posts
    127
    Rep Power
    7

    Default

    Tried both syntax and it did not work. Just to make sure I understood Noikokyra's comment, I am pasting the section of my file

    transform.roadname_abbrev_table = TRANSFORM.new({
    {2,L"(?i)RTE[ -]([0-9]+)\\b", L"Route \\1"},
    {2, L"(?i)([0-9])[ -]BL\\b", L"\\1 Business Loop"},
    {2, L"(?i)([0-9])[ -]BR\\b", L"\\1 Business Road"},
    {2, L"(?i)([0-9])[ -]BS\\b", L"\\1 Business Spur"},
    {2, L"(?i)^S\\.?T\\.? ", L"Saint "},
    {2, L"(?i)\\sST\\.?\\b", L" Strit"},

    Also, just so you can see how the road name is stored within the map, I am adding a screenshot. When I turn, the TTS says "R T E 329". The hyphen is skipped.

    I keep looking for a solution on my side too.
    [Only registered and activated users can see links. ]
    Last edited by varso; 2nd August 2016 at 15:15.

  5. #14
    Master Mike Hunt's Avatar
    Join Date
    May 2014
    Location
    Europe
    Posts
    167
    Rep Power
    87

    Default

    Also check Dictionary.lang in your <lang>.zip file for:
    Route="Route"
    rte="Route"
    If the second one is not there, add it and try again.
    When there is a conflict, often the language file takes precedence over the voice file.
    Last edited by Mike Hunt; 2nd August 2016 at 15:10.

  6. #15
    Senior Member
    Join Date
    Dec 2010
    Location
    NA
    Posts
    127
    Rep Power
    7

    Default

    No Rte references found in the Dictionary.lang. I have added Rte="Route" and also tried Rte-="Route". Both did not work.

    Thanks, Osiris4isis, Noikokyra and Mike Hunt for your suggestions. Your help is appreciated.

  7. #16
    Important User

    osiris4isis's Avatar
    Join Date
    Apr 2012
    Location
    Farside of the Sun
    Posts
    2,646
    Rep Power
    639

    Default

    I found where the kludge to handle US "route", it's "RT" not "RTE", so I'll bet in Canada it's "RTE", you might have to change it "RTE" for it to work
    Spoiler: .

    This post requires you to click the "LIKE this post" button and hit F5 to read this content.
    "You know the very powerful and the very stupid have one thing in common. They don't alter their views to fit the facts. They alter the facts to fit the views." -DrWho

    Do NOT PM me with requests or for fixes to your problem. Post in thread instead. All communications in English only!

  8. #17
    Senior Member
    Join Date
    Dec 2010
    Location
    NA
    Posts
    127
    Rep Power
    7

    Default

    This is how the block looked like after my update

    if state and really_state then
    if wstring.find(state, L"CR") then state = L"County Road"
    elseif wstring.find(state, L"RT") then state = L"Route"
    elseif wstring.find(state, L"RTE") then state = L"Route"
    else

    Samantha stills says Rte 329. This is very puzzling. I suspect you must have other demands for help. you can drop this. This is not your fight. It's mine. I do appreciate your insight on this but I am starting to feel I have been overstretching your generosity. Even if we did not find the solution, you sure did help me improve my knowledge. I used to be a programmer on mainframe in a previous life. I can see what the code is doing but many functions and the syntax is not always fully understood.

  9. #18
    Important User

    osiris4isis's Avatar
    Join Date
    Apr 2012
    Location
    Farside of the Sun
    Posts
    2,646
    Rep Power
    639

    Default

    @varso
    Spoiler: .

    This post requires you to click the "LIKE this post" button and hit F5 to read this content.
    Last edited by osiris4isis; 2nd August 2016 at 22:46.
    "You know the very powerful and the very stupid have one thing in common. They don't alter their views to fit the facts. They alter the facts to fit the views." -DrWho

    Do NOT PM me with requests or for fixes to your problem. Post in thread instead. All communications in English only!

  10. #19
    Member +
    Join Date
    Mar 2016
    Location
    Alaska
    Posts
    42
    Rep Power
    2

    Default

    Try making the space-or-hyphen optional and removing the word boundary restriction:

    {2, L"(?i)RTE[ -]?([0-9]+)", L"Route \\1"}

    Other thoughts:

    Maybe routes on this map are not handled as road names, maybe like directions or something so in this case try adding the above suggested lines to a transform.direction table if it exists.
    Last edited by noikokyra; 2nd August 2016 at 22:41.

  11. #20
    Senior Member
    Join Date
    Dec 2010
    Location
    NA
    Posts
    127
    Rep Power
    7

    Default

    @Osiris4isis
    I did not know the text as in RTE is uppercase/lowercase sensitive. I am from the old school. We had to wait 24 hrs before getting our jobs back. Believe me, we learned quickly how to check the syntax. With Lua, I do not always know what I am typing for instance, I have no idea what's the L does and I just learned from the previous post that brackets are for optional text. The [0-9] is this for only 1 digit or any numerical?

    I suspected error lines were ignored as I never had an error message. Now I know they are. Thanks for the free lesson.....

    @noikokyra

    I will try both of your suggestions

 

 
Page 2 of 9 FirstFirst 1234 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.