From 5566df1979df7d426e99e6212bfb24009c36f23e Mon Sep 17 00:00:00 2001 From: Eric Mader Date: Thu, 8 Nov 2001 00:40:20 +0000 Subject: [PATCH] ICU-1428 change the name of the text file to 'Sample.txt" X-SVN-Rev: 6687 --- icu4c/source/samples/layout/Sample.txt | 28 +++++++++++++++++++++ icu4c/source/samples/layout/gnomelayout.cpp | 2 +- icu4c/source/samples/layout/layout.cpp | 2 +- icu4c/source/samples/layout/readme.html | 2 +- 4 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 icu4c/source/samples/layout/Sample.txt diff --git a/icu4c/source/samples/layout/Sample.txt b/icu4c/source/samples/layout/Sample.txt new file mode 100644 index 00000000000..272c76145ca --- /dev/null +++ b/icu4c/source/samples/layout/Sample.txt @@ -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: +บทที่๑พายุไซโคลนโดโรธีอาศัยอยู่ท่ามกลางทุ่งใหญ่ในแคนซัสกับลุงเฮนรีชาวไร่และป้าเอ็มภรรยาชาวไร่บ้านของพวกเขาหลังเล็กเพราะไม้สร้างบ้านต้องขนมาด้วยเกวียนเป็นระยะทางหลายไมล์ diff --git a/icu4c/source/samples/layout/gnomelayout.cpp b/icu4c/source/samples/layout/gnomelayout.cpp index 5ca5c68a720..6a19af35b44 100644 --- a/icu4c/source/samples/layout/gnomelayout.cpp +++ b/icu4c/source/samples/layout/gnomelayout.cpp @@ -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); diff --git a/icu4c/source/samples/layout/layout.cpp b/icu4c/source/samples/layout/layout.cpp index 9c9ea47e6d2..f8a8cc65dfb 100644 --- a/icu4c/source/samples/layout/layout.cpp +++ b/icu4c/source/samples/layout/layout.cpp @@ -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; diff --git a/icu4c/source/samples/layout/readme.html b/icu4c/source/samples/layout/readme.html index dedbdc270ff..59e23a108e3 100644 --- a/icu4c/source/samples/layout/readme.html +++ b/icu4c/source/samples/layout/readme.html @@ -61,7 +61,7 @@ Fonts folder and copy the "Times New Roman" font (the file name will be or "./gnomelayout" in Linux)

How can I customize the layout demo?

-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