mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-1428 change the name of the text file to 'Sample.txt"
X-SVN-Rev: 6687
This commit is contained in:
parent
d5bb2fd69c
commit
5566df1979
4 changed files with 31 additions and 3 deletions
28
icu4c/source/samples/layout/Sample.txt
Normal file
28
icu4c/source/samples/layout/Sample.txt
Normal file
|
@ -0,0 +1,28 @@
|
|||
The LayoutEngine does all the work necessary to display Unicode text written in languages with complex
|
||||
writing systems such as Hindi (हिन्दी)
|
||||
Thai (ไทย) and Arabic (العربية). Here's a sample of some text written in Sanskrit:
|
||||
श्रीमद् भगवद्गीता
|
||||
अध्याय अर्जुन विषाद
|
||||
योग धृतराष्ट्र उवाचृ
|
||||
धर्मक्षेत्रे
|
||||
कुरुक्षेत्रे समवेता
|
||||
युयुत्सवः मामकाः
|
||||
पाण्डवाश्चैव किमकुर्वत
|
||||
संजव Here's a sample of some text written in Arabic:
|
||||
أساسًا، تتعامل
|
||||
الحواسيب فقط مع
|
||||
الأرقام، وتقوم ب
|
||||
تخزين الأحرف والمحارف ال
|
||||
أخرى بعد أن تُعطي رقما م
|
||||
عينا لكل واحد من
|
||||
ها. وقبل اختراع
|
||||
"يونِكود"، كان ه
|
||||
ناك مئات الأنظمة
|
||||
للتشفير وتخصيص
|
||||
هذه الأر
|
||||
قام للمح
|
||||
ارف، ولم يوجد نظ
|
||||
ام تشفير واحد يح
|
||||
توي على جميع المحارف الض
|
||||
رورية and here's a sample of some text written in Thai:
|
||||
บทที่๑พายุไซโคลนโดโรธีอาศัยอยู่ท่ามกลางทุ่งใหญ่ในแคนซัสกับลุงเฮนรีชาวไร่และป้าเอ็มภรรยาชาวไร่บ้านของพวกเขาหลังเล็กเพราะไม้สร้างบ้านต้องขนมาด้วยเกวียนเป็นระยะทางหลายไมล์
|
|
@ -142,7 +142,7 @@ int main (int argc, char *argv[])
|
|||
|
||||
// FIXME: is it cheating to pass NULL for surface, since we know that
|
||||
// GnomeFontInstance won't use it?
|
||||
context.paragraph = Paragraph::paragraphFactory("Sample.utf8", fontMap, guiSupport, NULL);
|
||||
context.paragraph = Paragraph::paragraphFactory("Sample.txt", fontMap, guiSupport, NULL);
|
||||
|
||||
if (context.paragraph != NULL) {
|
||||
gnome_init("gnomelayout", "1.0", argc, argv);
|
||||
|
|
|
@ -98,7 +98,7 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
|||
return 0;
|
||||
}
|
||||
|
||||
paragraph = Paragraph::paragraphFactory("Sample.utf8", fontMap, guiSupport, hdc);
|
||||
paragraph = Paragraph::paragraphFactory("Sample.txt", fontMap, guiSupport, hdc);
|
||||
SetWindowLong(hwnd, 0, (LONG) paragraph);
|
||||
|
||||
windowCount += 1;
|
||||
|
|
|
@ -61,7 +61,7 @@ Fonts folder and copy the "Times New Roman" font (the file name will be
|
|||
or "./gnomelayout" in Linux)
|
||||
<h2>
|
||||
How can I customize the layout demo?</h2>
|
||||
The text that the layout demo displays is read from the file "Sample.utf8."
|
||||
The text that the layout demo displays is read from the file "Sample.txt."
|
||||
You can change the text by editing this file using a Unicode-aware text
|
||||
editor. (it is in UTF8 format with a BOM as the first character; the demo
|
||||
can also read UTF16 and UTF32 format files) Remember that the text will
|
||||
|
|
Loading…
Add table
Reference in a new issue