TTS sheet - What priority means?

Moderators: Unholy, orit_y

Re: TTS sheet - What priority means?

Postby atrophicshiner » Thu Dec 12, 2019 2:49 pm

Higher (number) priority determines if the regex and replacement is applied first to a string so it won't match with another regex.
- Chris - (Catching up with the Ia[i]ns one Chris at a time)

[ img ][ img ][ img ]
UK Local Champ would you believe
AM the Middle bit of England
Usability | Simplicity | Retention
atrophicshiner
Waze Local Champs
Waze Local Champs
 
Posts: 2844
Joined: Sat Dec 19, 2015 11:10 am
Location: Coventry, UK
Has thanked: 1050 times
Been thanked: 952 times

TTS sheet - What priority means?

Postby bures » Wed Dec 04, 2019 6:03 pm

There is the column called "priority" in the TTS language sheet which contains the numbers. What is the exact meanings of that numbers? Are the rows with lower numbers proccessed before the rows with higher numbers or it is on the contrary? Can someone tell me more about this? Thanks.
[ img ][ img ]
Jirka Bureš
bures
Waze Global Champs
Waze Global Champs
 
Posts: 992
Joined: Mon Jun 27, 2011 1:38 pm
Location: Holešov
Has thanked: 659 times
Been thanked: 434 times

Re: TTS sheet - What priority means?

Postby bures » Thu Dec 19, 2019 3:25 pm

atrophicshiner wrote:Higher (number) priority determines if the regex and replacement is applied first to a string so it won't match with another regex.

Thanks for your answer. I have heard similar explanation before. But I do not fully understand. Let me show the example (see attached image).
  • We have input text "ABCD".
  • Row 465 has priority 150 (higher than row 464). It should be used first (search for "AA" inside "ABCD"; there is no match and the input string stay unchanged).
  • Then application use rule 464 with lower priority (search "B" inside "ABCD"; there is match; so change "ABCD" into "AACD").
  • Final result is "AACD".
Am I right?
Attachments
priority.png
(13.58 KiB) Downloaded 123 times
[ img ][ img ]
Jirka Bureš
bures
Waze Global Champs
Waze Global Champs
 
Posts: 992
Joined: Mon Jun 27, 2011 1:38 pm
Location: Holešov
Has thanked: 659 times
Been thanked: 434 times


Return to Localization

Who is online

Users browsing this forum: No registered users