Skip to main content

Search

Search

How To Print To File Arabic Characters?

Comments

9 comments

  • Avatar
    Ian Cummings
    Moderator

    Which device font are you using?  I don't think Arabic is even supported at the device font level for this printer, so you'll need to use a Windows font instead, which means the print file will contain graphical data for the text objects. 

    0
  • Avatar
    Legacy Poster

    Actually I don't know which device font is used but I can learn if it is required. Let me clear my case, I am a software developer and I will send some barcode data to printer using c#. It is told me that they can print arabic fonts when they prepare barcode using BarTender but the problem is that BarTender cannot show me the codes (commands) for the arabic letter fields when I print to file.

    0
  • Avatar
    Ian Cummings
    Moderator

    Are you wanting to print Arabic script as text or as data in a barcode?  It's not clear from your description.  If you wish to print as text then you'll need to use a Windows font which will appear as graphical data in the print file.  For barcode data you'll be limited to specific symbologies like data matrix or PDF-417.

     

    For what purpose do you need to view the individual data values of the Arabic encoded data in the print file?

    0
  • Avatar
    Legacy Poster

    Execuse me but I am not familiar with this type of issues. I dont know what is the difference between text and data. In the picture below, the red part is label and the left side arabic text is the date which I provide from code and try to send to printer.

     

    Here is my barcode sample

    (http://tinypic.com/r/k99b2o/9)

     

     

    And here is what I see when I print to file with cab a4 300 k printer. The fantastic characters stem from the arabic part. I want to send printer latin characters and I want printer to print with arabic some part. Am I clearer now? 

     

    Thank you so much for your help

     

    ##                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           CAB                                                                                 eIMG;*
    ##                           dIMG;0
    : U UØ>€? `€€xü `€€ `€þü à€áÀxà€ƒ‡ à€€àøà€ƒ à€€cØ`=€
    ƒ `€
    c˜`9€ƒ `€
    ` `۠
    ð`€
    À `€1€üø`€
    À `€qþ`€€ `€aƒ `€ `€Á‡€0`€ `Á†€p`€ `ÿæ€ø€8 `ÿæ˜ø€` `€†œ `€À `€ ƒ€ `€ÿà `€þø `€ÿà `€€üà `  ÿ;€ð€ˆ    ÿ €
    ðð@?à€ @€ à€€ˆ ˆ 0 0!„@  € € ! €€ˆ@H! ( (" D@  
    @ ! @ˆ€ €ˆ€A ( ($@$@   @ $ € €
    €ˆ€ $  $€@$@   @
      € € ÿˆ€    þ" "$@$@?À € €€ €ˆ€
    A " "$@$@   €
      ‡Ïà€ €ˆ€! ! !$@$@    €€H@€ €ˆ€!    ¤@$@   €  €€H €€ˆ@H    ¢ D@    € €@ˆ €€ˆ ˆ  ` a„@    @€1 !€ð€ˆ    ÿ €ðð?àÀ€  ÿ;€ð€ˆ    ÿ €
    ðð@?à€ @€ à€€ˆ ˆ 0 0!„@  € € ! €€ˆ@H! ( (" D@  
    @ ! @ˆ€ €ˆ€A ( ($@$@   @ $ € €
    €ˆ€ $  $€@$@   @
      € € ÿˆ€    þ" "$@$@?À € €€ €ˆ€
    A " "$@$@   €
      ‡Ïà€ €ˆ€! ! !$@$@    €€H@€ €ˆ€!    ¤@$@   €  €€H €€ˆ@H    ¢ D@    € €@ˆ €€ˆ ˆ  ` a„@    @€1 !€ð€ˆ    ÿ €ðð?àÀ€  ÿ;  ÿ4€%àøàÀŽ8ÿñÇÀÿŽü?àqÀà àqÀ
      ÿ€€Ç€qÀ
     
    €~ ø À €ø ð ÁÇÿðð À ~€ü ‚€qÀ
        €$ÿ€þ ?ð €þ ü ?ñÇÿðø ?ðÿ€ÿ ‚€qÀ
        €$ÿÀÿ ø €ÿ þ ùÇÿðþ øÿÀÿ€‚€qÀ
        
    ƒÀ€ð8 € €  € ðyÇ€`>  x€
    ÃÀ€ qÀ
        €à €Àà €€8à=Ç€À8 à<àÀ qÀ
        €( à8Àà ?€€8ÀÇ Àx à àÀ qÀ
        €€%8Àà {€€8ÀÇ €p€à àÀ 8qÀ
        €€ Àà c€8Àpƒ€Ç pÀ €     pÀ 0qÀ
        €~ Àp8 C€8ÀpƒÁÇ pÀ €     p€ pqÀ
        €ÿ €?ð €8Àpƒ¿áÇ pÀ € pÿ€àqÀ
        €ÿ€ €à €8ÀpƒÿñÇ pÀ € pþ€àqÀ
        €ƒÀ ø €8ÀpƒðyÇ 8À €     pÿ€ÀqÀ
        €À ð< €8ÀpƒÀ9Ç <À €     pÀÀqÀ
        € à à €8ÀpƒÀÇ 8 ÿÀ €     pÀ€qÀ
        € à 8À €8Àpƒ€Ç 8 ûÀ €     p à€qÀ
        € à€pÀ €8Àpƒ€€8 ãÀ € p à€    € à€àÀ €8Àpƒ€€p€À € p à
        € à€ÀÀ €€8€€p€ à à à
        € à€€À €€8À€p p à à à
        €À€€
    à €€8À8€p x à àÀ
        €ƒÀ€€ð< € €  € ðx€à <  x€ÃÀÀ
        €ÿ€€ÿÀø €ÿ þ ÿð€à ?ü øÿÀÿ€
        €ÿ€?ÿÀ?ð €þ ü ?à€à ø ?ðÿ€ÿ
    €ü€?ÿÀÀ €ø ð €€    à à À ~€ü
      ÿ;.€@€€€ 0€ €p€€€ 0€ €à€  € `€0€(€
    `€p€€
    `€P€œ€
    € 0 À€P€ä€
    € 0 À€X
    €À€
    €€0 6 À€Ø€@€
    €€0 3 À  Ì€€À ` #€0 Œ€ü €À ` c€<Ž€ÿü    €À ` aÁ€|‡€ÿø    †€
    À À Áã x€€À €†€
    € ÀÀã 8€€@†€
    € À€c €€0@†€€ À€€c€€€`‚€†€€€ &€ €€@‚€†€€€€€? 󀄀€€€€€€ €€ €À*€€€*€ €€(*€€€0*€À€+€ð€`+€þ+€þ+€ø+€ð  ÿ;-€
    -€€-€ -€@.€ð€   €€ 0 €    €à€ 0€€Â 0 €    € € ?€€þ ` €    € € ?€€þ ` €    € € ?€€þ ` €€€ €0€ À †€€€ €0€ À †€>€€ €0€ À€Ä    €  ÿ€
    € €0 À  Ì    € ÿ†€À €` €0 l€  ƒ†€À €` €< h€€0†€À À` €| (€à8x†€À  À€  € x (€9„€†€€ àÀ ƒ 8 8€0„€†€€ `À ƒ 0€`?Ï‚€„€€ `À€ƒ€€À€€€ !€€†€€€€€€€€€€€€€(€€€0/€/€`  ÿ;€ÿ€?þ€
    ð ü à À€`€ÿà?ÿ€ üÿ ø À8€à€ÿð?ÿÀ þÿ€0 ?ü€x à€ ð8à  €€0 x€ø à€ x8à 8À0? pø à€  8€
     ð 8À` à €ø à€  8€ p 8€À`÷ à¸ à€  8€
     x8pŽÀ`Ç€8 à€  8€  8€p‡€`‡€8 8à€ x8 8 pƒÿ À€ 8 pà€ ð8 8 pþ À€ 8 pà€ÿð8 8 p‡ÿ€À€ 8  à€ÿà8 8 pÁ€€8 8Àà€ÿ€8 8 pŽÁ€€p 8€à€€8 8 pœ ကà 8 à€€8 8 pœ 〠À 8ÿü€€8 p pœ ã € 8ÿü€€8 p 8 ã 8ÿü€€8 ð 8 ã 8€à€€8 à 8Æ 8 0 8€à€€8à  €Æ p 0 8€à€€?ÿÀ8þÿ† ÿ0 8€à€€?ÿ€8üÿ ‚€p 8€à€€?ü 8ð ü ‚€` 8€à  ÿ;€ÿð?þ
    €à?ÿÀ0? à€0 ?
    €ÿð?ÿ€    €ø?ÿÀ0ÿÀø€p ÿÀ€ÿð?ÿÀ    €?ü?ÿÀaÿà?ü ðÿà€€8à     <€ €aáàx<ðÁà€€8à    €p c€ ð€ €ð€ð€€8 ð    €p Àpàð p€€8 p8€p Àpà p€€8 x8€à Ç 9À p€€8  8€à Ç 9Çàp?
    €€8 8    €à 8‡ 9ßð pÿ€€ÿà8 8    €à 8‡ 9ÿø pÿÀ€ÿà8 8    €à p‡ 9ø< pÁà€ÿà8 8    €à p 9à p à€€8 8    €à à 9à p p€€8 8    €à à 9À p p€€8 8    €à à €
     9À8 p p€€8 p    €àÀ 9À0 p p€€8 p    €pÀ€pÀ0 p p€€8 ð    €pÀ€pà0 p p€€8 à    €pÀ€pà` p à€€8à     <€€áàx<` pÁà€ÿø?ÿÀ8€?ü€ÿàø` pÿÀ€ÿø?ÿ€8€ø€ ÿÀðà p ÿ€€ÿø?ü 8€    à€ ? À€ p ~
    end-of-data
    mm
    zO
    J
    H100,+0,T,R0
    O R
    Sl1;0.0,0.00,29.56,29.56,39.97
    I:Field1;0.00,2.37,0;0
    A1
    ##  ##  
    0
  • Avatar
    Ian Cummings
    Moderator

    From the picture I see you're trying to print Arabic text.

     

    The "fantastic" characters in the print file is simply binary encoded data which represents graphical data embedded into the print job for the Arabic text, and any other graphical items on the label.  The Arabic text is being printed using a Windows font hence the graphic data in the print file.

     

    Have you tried printing this document?  I assume it prints okay?

     

    The following white paper should be helpful in your understanding: http://www.seagullscientific.com/media/101558/international-characters-with-bartender-201511.pdf

    0
  • Avatar
    Legacy Poster

    Yes it prints okay.

     

    The part I don't understand is why arabic text seen as graphical and encoded binarily. Windows support arabic text, notepad also support arabic text but I cannot see as arabic. Why? Isn't it possible?

     

    Thanks

    0
  • Avatar
    Ian Cummings
    Moderator

    The printer doesn't, hence BarTender renders it as graphical data in the print file with the use of a Windows font.

    0
  • Avatar
    Legacy Poster

    Ok my last question is coming :) (If it is possible) I will upload arabic fonts to my printers. Then, will I be able to print to file (using barTender) with normal characters? 

     

    Thank you so much for your help

    0
  • Avatar
    Ian Cummings
    Moderator

    In theory yes, BUT your printer doesn't support this so NO!  Also, Arabic for printer based fonts is a bit of a special case.  Part of the reason is the right to left text alignment, but also because when particular characters are next to each other you get an effect called glyph shaping.  To give you an idea of what this is I give you an example with Latin characters for illustration purposes: With the letters A and E next to each other, the glyph shaping would give you this Æ.  Glyph shaping for Arabic script is pretty much mandatory in order for the text to be readable to a human.  However, this is typically not implemented in the firmware of printers.

    0

Please sign in to leave a comment.