If you are using Thermal printers some printers will change the order of characters. You can correct it by using one of these RTL printing fixes.
- Word: Detects RTL words and change character order.
- Line: Detects RTL words and change character order and alignment.
- Full: Reverses whole output.
This only works if printer type is Ticket Printer. Other printer types should print correctly based on your OS settings.
OK im doing some testings (4.1.17), my printer configurations is “RTL Support”= Word. “Character Set”=862 (for hebrew):
i have 2 main issues:
one, I dont think the RTL reads "portions"as should - portion names maybe not aligned,
two, in hebrew we use the ’ character in words: lets say we write Jam’eson (for jameson) and now it shows as eson’jam.
Mayase did you tried left aligning everything and a full reverse?
yes i did - full also reverse numbers (date, hour etc)
So numbers are not reversed like Arabic? Hmm… OK. I’ll try to improve that.
Mayase can you give me an example on Hebrew for testing that?
What it generates without RTL:
What it currently generates with RTL:
What it should generate with RTL:
OK i’ll try to result it soon as possible
@mayase a single row with numbers and a word that contains ’ will be enough
What it generates without RTL: םי’ג םיב
What it currently generates with RTL (word): ים בים’ג
What it should generate with RTL: ג’ים בים
So you want to reverse only the order of the letters not the words? For example how we should reverse
ABC DEF? Do you want
CBA FED or
it should be FED CBA,
on "word"it is working until i use the ’ character
lets say ABCD’EF - should be FE’DCBA
also when printing portions of items - it revers only the characters but not the words
Bottom line, it should reverse the characters and also the words, plus ’ character
So shouldn’t םי’ג םיב become בים ג’ים ? Why ג’ים בים ?
it should be
you suppose to read it from right to left
first word is ג’ים
first character is ג
Does multiple words prints fine if there is no ’ character?
yes, when there is no ’ it looks ok,
except portion names - characters ok but words not,
also in portions - it write first the portion and then the product name (from right)
BTW talking about ’ also means for "
OK. I don’t have a printer to test that atm but I’ve changed code with the hope it works fine. I’ll be happy if you can test it with next version and let me know your results.