[IDLE] Israel LabVIEW User Group

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I write in Hebrew?איך כותבים בעברית

English description can be found below


המערכת ש-NI משתמשת בה לא תומכת היום בצורה מסודרת בכתיבה מימין לשמאל (יותר מדויק בכתיבה שבה יש טקסט דו-כיווני), וכרגע אין להם תכניות מסודרות למתי הם כן יתמכו בזה.

למרות זאת, אנחנו מתכנתים, אז לא נוותר כל כך בקלות - ניתן לכתוב פה בעברית, אבל בשביל שזה יעבוד כמו שצריך צריך לייצר את קוד ה-HTML הרלוונטי ישירות, ויש לנו VI שעושה את זה.

הוראות הפעלה

יש להוריד ולפתוח את ה-VI
בתוך ה-VI אפשר לכתוב את הטקסט בצורה רגילה. הוא לא יופיע כמו שמצפים, כי גם LabVIEW לא תומך טוב בעברית, אבל זה בסדר.
מריצים את ה-VI והקוד יזהה איך הטקסט כתוב וייצור קוד HTML מתאים.
הקוד שומר את התוצאה לקובץ טקסט* ופותח אותו.
מעתיקים את התוצאה.
במסך העריכה לוחצים על כפתור ה-HTML כדי להיכנס למצב העריכה המתאים:

HTML.png

מדביקים את הקוד שלנו.
לוחצים על Publish



אם יש למישהו הצעות לשיפור של הקוד או התהליך, אפשר להשאיר פה הערה.

*הערות -
הסיבה שכותבים את הקוד לקובץ טקסט במקום להעתיק אותו ישר ללוח היא התנהגות מוזרה של המערכת - בפעם הראשונה ההעתקה עובדת בסדר, אבל אחרי זה היא מכניסה ג'יבריש. נראה שמשהו גורם למערכת להתייחס לטקסט כ-Unicode למרות שהוא לא.


How do I write bidirectional text (right to left languages like Arabic, Hebrew or Urdu)

The NI forums and communities don't have very good support for bidirectional text at the moment. Whenever such text has things like English letters, numbers or punctuation marks, it is displayed badly.

The attached VI will allow you to write mixed text as you would normally write it and when you run it will go over the text and convert it into HTML code which includes directional tags to correctly display the text. The code is saved to a text file, which is then opened and allows you to copy and paste it into an edit control which has been switched to HTML mode, which is possible in both the communities and the forums (see image).

HTML.png

NOTE - The VI currently only deals with Hebrew text. If you want it to deal with other languages you should change the constant on the left side of the diagram to consider the relevant range of ASCII values as the right-to-left characters.


___________________
Try to take over the world!
0 Kudos
Message 1 of 1
(6,400 Views)