[liblouis-liblouisxml] Re: How can I test and debug iOS Liblouis tables?

  • From: kensaku yoza <kanjibrailles@xxxxxxxxx>
  • To: Christian Egli <christian.egli@xxxxxx>
  • Date: Tue, 3 May 2022 19:40:36 +0900

Hello,

Following lines are the sample sentences used for translation with Japanese 
Kanji table, and this causes VoiceOver crash or infinite loop or something bad.

------------
“69224, Your recurring payment of $4,090.07 has been applied to your account. 
To review your payment history, log in to www.shellpointmtg.com. Reply STOP to 
opt out, 4:51 AM”
------------

And following is the backtrace result:

-----------
    frame #0: 0x000000010667ddbc 
LiblouisBrailleTranslator`passDoTest(table=0x000000010adbc000, pos=87, 
input=0x000000016b00e270, transOpcode=73, transRule=0x000000010af172a8, 
passCharDots=0x000000016b00e028, passInstructions=0x000000016b00e020, 
passIC=0x000000016b00e01c, match=0x000000016b00e008, 
groupingRule=0x000000016b00e000, groupingOp=0x000000016b00dffe) at 
lou_translateString.c:731
    frame #1: 0x000000010667dc3c 
LiblouisBrailleTranslator`findForPassRule(table=0x000000010adbc000, pos=87, 
currentPass=1, input=0x000000016b00e270, transOpcode=0x000000016b00e040, 
transRule=0x000000016b00e030, transCharslen=0x000000016b00e02c, 
passCharDots=0x000000016b00e028, passInstructions=0x000000016b00e020, 
passIC=0x000000016b00e01c, match=0x000000016b00e008, 
groupingRule=0x000000016b00e000, groupingOp=0x000000016b00dffe) at 
lou_translateString.c:211:7
    frame #2: 0x000000010667b2c8 
LiblouisBrailleTranslator`translateString(table=0x000000010adbc000, mode=68, 
currentPass=1, input=0x000000016b00e270, output=0x000000016b00e250, 
posMapping=0x0000000107831000, typebuf=0x000000010782c800, 
srcSpacing=0x0000000000000000, destSpacing=0x0000000000000000, 
wordBuffer=0x000000010580e000, emphasisBuffer=0x0000000105810400, 
haveEmphasis=0, realInlen=0x000000016b00e19c, 
cursorPosition=0x000000016b00e204, cursorStatus=0x000000016b00e200, 
compbrlStart=-1, compbrlEnd=-1) at lou_translateString.c:3675:7
    frame #3: 0x0000000106679848 
LiblouisBrailleTranslator`_lou_translate(tableList="ja-kantenji.utb", 
displayTableList="ja-kantenji.utb", inbufx=0x000000010520ced0, 
inlen=0x000000016b00e554, outbuf=0x000000010580aa00, outlen=0x000000016b00e550, 
typeform=0x0000000000000000, spacing=0x0000000000000000, 
outputPos=0x000000010580f200, inputPos=0x0000000000000000, 
cursorPos=0x0000000000000000, mode=68, rules=0x0000000000000000, 
rulesLen=0x0000000000000000) at lou_translateString.c:1276:16
    frame #4: 0x0000000106678f80 
LiblouisBrailleTranslator`lou_translate(tableList="ja-kantenji.utb", 
inbufx=0x000000010520ced0, inlen=0x000000016b00e554, outbuf=0x000000010580aa00, 
outlen=0x000000016b00e550, typeform=0x0000000000000000, 
spacing=0x0000000000000000, outputPos=0x000000010580f200, 
inputPos=0x0000000000000000, cursorPos=0x0000000000000000, mode=68) at 
lou_translateString.c:1115:9


frame #1: 0x000000010667dc3c 
LiblouisBrailleTranslator`findForPassRule(table=0x000000010adbc000, pos=87, 
currentPass=1, input=0x000000016b00e270, transOpcode=0x000000016b00e040, 
transRule=0x000000016b00e030, transCharslen=0x000000016b00e02c, 
passCharDots=0x000000016b00e028, passInstructions=0x000000016b00e020, 
passIC=0x000000016b00e01c, match=0x000000016b00e008, 
groupingRule=0x000000016b00e000, groupingOp=0x000000016b00dffe) at 
lou_translateString.c:211:7
(lldb) p ruleOffset
(TranslationTableOffset) $0 = 173861
------------

Thank you

Kensaku



For a description of the software, to download it and links to
project pages go to http://liblouis.org
Donate: http://liblouis.org/sponsoring

Other related posts: