Ticket Print template issue in arabic language

@emre Hope u well. First of all i would like to thank you very much for your continues support.
I have an issue with Ticket template print. Basically my menu is in arabic. I have setup the character set and stuff. Arabic language does comes up while printing. However, the alignment is not right for the first line. What happens is with first line quantity and price come on one side and name on other, when it should be like quantity, name and price. The alignment is out for first line only, other lines are perfectly aligned. To make more sense i have am attaching print out of my receipt and also Ticket Template Script.

I would like to mention that i have already tried div and span tags, but unfortunately, still has no luck. Your help in this matter will be much appreciated.

Thanks in Advance.

,

Please find below Ticket Template:

<T>RECEIPT
<L00>Date:{TICKET DATE}
<L00>Time:{TIME}
{ENTITIES}
<L00>RECEIPT #:{TICKET NO}
<L00>User:{USER NAME}
<L00>Note:{NOTE}
<F>-
<EB>
{ORDERS}
<F>=

{DISCOUNTS}
[<J10>Total Gift:|{ORDER STATE TOTAL:Gift}]
{SERVICES}
<div style="font-weight:normal;text-align:left;font-family:Tahoma;font-size:10px">
<J10>{TICKET TOTAL}:Total
</div>
{PAYMENTS}
<DB>
<F>=
<div style="font-weight:normal;text-align:center;font-family:Tahoma;font-size:11px">
<C10>T H A N K   Y O U
<L00>Please come Again !!!

</div>
[DISCOUNTS]
<J00>{CALCULATION NAME} %{CALCULATION AMOUNT}|{CALCULATION TOTAL}

[SERVICES]
<J00>{CALCULATION NAME}|{CALCULATION TOTAL}

[PAYMENTS]
<J00>{PAYMENT NAME}|{PAYMENT AMOUNT}

[ORDERS]
-- Default format for orders
<J00>- {QUANTITY} {NAME}|{TOTAL PRICE}
{ORDER TAGS}

[ORDERS:Gift]
-- Format for gifted orders
<J00>- {QUANTITY} {NAME}|**GIFT**
{ORDER TAGS}

[ORDERS:Void]
-- Nothing will print for void lines

[ORDER TAGS]
-- Format for order tags
<J00> * {ORDER TAG NAME} | {ORDER TAG PRICE}

[ENTITIES:Type]
-- Type entity format                                                        
<L00>Type: {ENTITY NAME}
[ENTITIES:Customer]
-- Customer entity format
<J00>Delivery                          
<J00>Customer:{ENTITY NAME}
<J00>Phone no:{ENTITY DATA:Phone}
<J00>Address :{ENTITY DATA:Address}
[ENTITIES:Drivers]
-- Drivers entity format
<J00>Driver: {ENTITY NAME}
[ENTITIES:Safri]
-- Safri entity format
<L00>Safri                                                         
<L00>Customer: {ENTITY NAME}
[ENTITIES:Car Order]
-- Car Order entity format
<L00>Car Order                                                   
<L00>Car: {ENTITY NAME}

Have you got RTL option enables then?

Thanks for your prompt reply.
Yes, I have. I am using Line option

I’m sure I remember someone else with the exact same issue a while back.
Can’t remember what the verdict was…
Rather than use RTL option can’t you just set the template with the equivilent arrangement?
The product name will be written RTL right?
So J00 {price} | {name} {qty} -

Yes u r right in saying “The product name will be written RTL”. I have tried playing with rearrangements of tags and also followed ur pattern. Unfortunately, still unlucky. Please find below Ticket print with rearranged tags as you suggested.

Regards

Saad

Did you turn off RTL?

Yes I have, but still same.

@emre can you please advise me on the above issue.

Regards

Saad

It is a little hard to use both Latin and Arabic letters on a single line. Try reordering tags on that part.

[ORDERS]
-- Default format for orders
<J00>- {QUANTITY} {NAME}|{TOTAL PRICE}
{ORDER TAGS}

For example you can try putting name tag to end and total price to the beginning.

Alternatively for V5 you can use table layout on HTML template. This might be a better solution.