From 56b008a34d07e42b5d7d424d35bc8e8847e75d70 Mon Sep 17 00:00:00 2001 From: h_vogt Date: Wed, 4 Oct 2017 20:43:09 +0200 Subject: [PATCH] some utf-8 examples please apologize for the nonsense texts --- examples/utf-8/стекло/ext-ascii-1.cir | 27 ++++++ examples/utf-8/стекло/ext-ascii-2.cir | 25 ++++++ examples/utf-8/стекло/ext-utf8-2.cir | 27 ++++++ examples/utf-8/стекло/ext-utf8-cyg2.cir | 42 +++++++++ examples/utf-8/стекло/있어요/adder_mos.cir | 82 ++++++++++++++++++ examples/utf-8/стекло/있어요/adder_mos3.cir | 85 +++++++++++++++++++ examples/utf-8/стекло/있어요/ext-utf8-1.cir | 39 +++++++++ .../utf-8/стекло/있어요/ext-utf8-2-있어요.cir | 46 ++++++++++ examples/utf-8/стекло/있어요/ext-utf8-2.cir | 46 ++++++++++ examples/utf-8/стекло/있어요/ext-utf8-3.cir | 33 +++++++ examples/utf-8/стекло/있어요/ext-utf8-4.cir | 40 +++++++++ examples/utf-8/стекло/있어요/utf-8-inv.cir | 52 ++++++++++++ examples/utf-8/стекло/있어요/utf-8-inv_w.cir | 53 ++++++++++++ 13 files changed, 597 insertions(+) create mode 100644 examples/utf-8/стекло/ext-ascii-1.cir create mode 100644 examples/utf-8/стекло/ext-ascii-2.cir create mode 100644 examples/utf-8/стекло/ext-utf8-2.cir create mode 100644 examples/utf-8/стекло/ext-utf8-cyg2.cir create mode 100644 examples/utf-8/стекло/있어요/adder_mos.cir create mode 100644 examples/utf-8/стекло/있어요/adder_mos3.cir create mode 100644 examples/utf-8/стекло/있어요/ext-utf8-1.cir create mode 100644 examples/utf-8/стекло/있어요/ext-utf8-2-있어요.cir create mode 100644 examples/utf-8/стекло/있어요/ext-utf8-2.cir create mode 100644 examples/utf-8/стекло/있어요/ext-utf8-3.cir create mode 100644 examples/utf-8/стекло/있어요/ext-utf8-4.cir create mode 100644 examples/utf-8/стекло/있어요/utf-8-inv.cir create mode 100644 examples/utf-8/стекло/있어요/utf-8-inv_w.cir diff --git a/examples/utf-8/стекло/ext-ascii-1.cir b/examples/utf-8/стекло/ext-ascii-1.cir new file mode 100644 index 000000000..72c3b45d8 --- /dev/null +++ b/examples/utf-8/стекло/ext-ascii-1.cir @@ -0,0 +1,27 @@ +* test de titre + +.control + +set hcopydevtype = postscript +set hcopypscolor=1 +set color2=rgb:F/0/0 + +let x = vector(5) +let y = exp(x) + +plot y vs x xlabel 'Mon x' ylabel 'Mon y' +hardcopy plot_1.ps y vs x xlabel 'Mon X' ylabel 'Mon Y' + +plot y vs x xlabel 'Mon x' title 'Mon titre' +hardcopy plot_2.ps y vs x xlabel 'Mon x' title 'Mon titre' + +plot y vs x xlabel test +hardcopy plot_3.ps y vs x xlabel test + +plot y vs x +hardcopy plot_4.ps y vs x + +plot y vs x xlabel 'Labellis X' ylabel 'Labellise Y' title 'Titr' +hardcopy plot_5.ps y vs x xlabel 'Labellis X' title 'Labellis Y' title 'Titr' + +.endc diff --git a/examples/utf-8/стекло/ext-ascii-2.cir b/examples/utf-8/стекло/ext-ascii-2.cir new file mode 100644 index 000000000..f0122d6e3 --- /dev/null +++ b/examples/utf-8/стекло/ext-ascii-2.cir @@ -0,0 +1,25 @@ +* test de titr + +.control +set encoding=extended_ascii +set hcopydevtype = postscript +set hcopypscolor=1 +set hcopyscale=0.5 +set color2=rgb:F/0/0 +setcf hcopyfont="Garamond" +set hcopyfontsize=14 + +let x = vector(5) +let y = exp(x) +setcf wfont="Garamond Fett" +set wfont_size=16 +plot y vs x xlabel 'Labellis X' ylabel 'Labellis Y' title 'Titr' +plot y vs x xlabel 'Labellis X' title 'Titr' +plot y vs x+0.001 xlabel 'Labellis X' ylabel 'Labellis Y' title 'Titr' loglog +plot y vs x+0.001 xlabel 'Labellis X' title 'Titr' loglog + +hardcopy plot_5.ps y vs x xlabel 'Labellis X' ylabel 'Labellis Y' title 'Titr' +shell Start /B plot_5.ps +write D:\Spice_general\tests\ext_unic_test.raw y x +*quit +.endc diff --git a/examples/utf-8/стекло/ext-utf8-2.cir b/examples/utf-8/стекло/ext-utf8-2.cir new file mode 100644 index 000000000..abaeb4d40 --- /dev/null +++ b/examples/utf-8/стекло/ext-utf8-2.cir @@ -0,0 +1,27 @@ +* test de titré +.control +set hcopydevtype = postscript +set hcopypscolor=1 +set hcopyscale=0.5 +set color2=rgb:F/0/0 +setcf hcopyfont=Arial +set hcopyfontsize=14 + +let x = vector(5) +let y = exp(x) +setcf wfont=Arial +set wfont_size=18 +plot y vs x xlabel 'Labellisé X' ylabel 'Labellisé Y: ÜüÖöÄäÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ' title 'Titré' +plot y vs x xlabel '我能吞下玻璃而不伤身体' ylabel 'Я могу есть стекло, оно мне не вредит' title ' أنا قادر على أكل الزجاج و هذا لا يؤلمني.' +plot y vs x+0.001 xlabel 'Labellisé X' ylabel 'Labellisé Y' title 'Titré 私はガラスを食べられます。それは私を傷つけません' loglog +*plot y vs x+0.001 xlabel 'Labellisé X' title 'Titré' loglog + +*hardcopy plot_5.ps y vs x xlabel 'Labellisé X' ylabel 'Labellisé Y' title 'Titré Äü @µ€~' +*shell Start /B plot_5.ps +echo 나는 유리를 먹을 수 있어요. 그래도 아프지 않아요 +echo 私はガラスを食べられます。それは私を傷つけません + +gnuplot test.gn y vs x xlabel 'Labellisé X' ylabel 'tüTÄtö Äü @µ€~' title 'ฉันกินกระจกได้ แต่มันไม่ทำให้ฉันเจ็บ ' + +*quit +.endc diff --git a/examples/utf-8/стекло/ext-utf8-cyg2.cir b/examples/utf-8/стекло/ext-utf8-cyg2.cir new file mode 100644 index 000000000..f77a036e0 --- /dev/null +++ b/examples/utf-8/стекло/ext-utf8-cyg2.cir @@ -0,0 +1,42 @@ +* test de titré + +.control +set hcopydevtype = postscript +set hcopypscolor=1 +set hcopyscale=0.5 +set color2=rgb:F/0/0 +setcf hcopyfont=Arial +set hcopyfontsize=14 +set color0="black" +set color1="white" +let x = vector(5) +let y = exp(x) +setcf xfont="Times New Roman" +set xfont_size=18 +plot y vs x xlabel 'Labellisé X' ylabel 'Labellisé Y: ÜüÖöÄäÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ' title 'Titré' +set color0="white" +set color1="black" +set xfont_size=16 +setcf xfont="Arial" +plot y vs x xlabel 'Я могу есть стекло, оно мне не вредит' ylabel 'Я могу есть стекло, оно мне не вредит' title 'Я могу есть стекло, оно мне не вредит' +set color0="yellow" +set color1="red" +set xfont_size=18 +setcf xfont="Noto Sans CJK JP Medium" +plot y vs x+0.001 xlabel 'Titré 私はガラスを食べられます。それは私を傷つけません' ylabel 'Titré 나는 유리를 먹을 수 있어요. 그래도 아프지 않아요' title 'Titré 我能吞下玻璃而不伤身体。' loglog + +*plot y vs x+0.001 xlabel 'Labellisé X' title 'Titré' loglog + +*hardcopy plot_5.ps y vs x xlabel 'Labellisé X' ylabel 'Labellisé Y' title 'Titré Äü @µ€~' +*shell Start /B plot_5.ps +echo 나는 유리를 먹을 수 있어요. 그래도 아프지 않아요 +echo 私はガラスを食べられます。それは私を傷つけません +echo 我能吞下玻璃而不伤身体。 + +setcf sourcepath = ( "D:/Spice_general/tests/utf-8/стекло/있어요" ) +source ext-utf8-2.cir + +gnuplot test.gn y vs x xlabel 'Labellisé X' ylabel 'tüTÄtö Äü @µ€~' title 'ฉันกินกระจกได้ แต่มันไม่ทำให้ฉันเจ็บ ' + +*quit +.endc diff --git a/examples/utf-8/стекло/있어요/adder_mos.cir b/examples/utf-8/стекло/있어요/adder_mos.cir new file mode 100644 index 000000000..3f0e7af7c --- /dev/null +++ b/examples/utf-8/стекло/있어요/adder_mos.cir @@ -0,0 +1,82 @@ + 유리를 - 4 BIT ALL-NAND-GATE BINARY ADDER + +*** SUBCIRCUIT DEFINITIONS +.SUBCKT NAND in1 in2 out VDD +* NODES: INPUT(2), OUTPUT, VCC +M1 out in2 Vdd Vdd p1 W=7.5u L=0.35u pd=13.5u ad=22.5p ps=13.5u as=22.5p +M2 net.1 in2 0 0 n1 W=3u L=0.35u pd=9u ad=9p ps=9u as=9p +M3 out in1 Vdd Vdd p1 W=7.5u L=0.35u pd=13.5u ad=22.5p ps=13.5u as=22.5p +M4 out in1 net.1 0 n1 W=3u L=0.35u pd=9u ad=9p ps=9u as=9p +.ENDS NAND + +.SUBCKT ONEBIT 1 2 3 4 5 6 +* NODES: INPUT(2), CARRY-IN, OUTPUT, CARRY-OUT, VCC +X1 1 2 7 6 NAND +X2 1 7 8 6 NAND +X3 2 7 9 6 NAND +X4 8 9 10 6 NAND +X5 3 10 11 6 NAND +X6 3 11 12 6 NAND +X7 10 11 13 6 NAND +X8 12 13 4 6 NAND +X9 11 7 5 6 NAND +.ENDS ONEBIT + +.SUBCKT TWOBIT 1 2 3 4 5 6 7 8 9 +* NODES: INPUT - BIT0(2) / BIT1(2), OUTPUT - BIT0 / BIT1, +* CARRY-IN, CARRY-OUT, VCC +X1 1 2 7 5 10 9 ONEBIT +X2 3 4 10 6 8 9 ONEBIT +.ENDS TWOBIT + +.SUBCKT FOURBIT 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 +* NODES: INPUT - BIT0(2) / BIT1(2) / BIT2(2) / BIT3(2), +* OUTPUT - BIT0 / BIT1 / BIT2 / BIT3, CARRY-IN, CARRY-OUT, VCC +X1 1 2 3 4 9 10 13 16 15 TWOBIT +X2 5 6 7 8 11 12 16 14 15 TWOBIT +.ENDS FOURBIT + +*** POWER +VCC 99 0 DC 3.3V + +*** ALL INPUTS +VIN1A 1 0 DC 0 PULSE(0 3 0 5NS 5NS 20NS 50NS) +VIN1B 2 0 DC 0 PULSE(0 3 0 5NS 5NS 30NS 100NS) +VIN2A 3 0 DC 0 PULSE(0 3 0 5NS 5NS 50NS 200NS) +VIN2B 4 0 DC 0 PULSE(0 3 0 5NS 5NS 90NS 400NS) +VIN3A 5 0 DC 0 PULSE(0 3 0 5NS 5NS 170NS 800NS) +VIN3B 6 0 DC 0 PULSE(0 3 0 5NS 5NS 330NS 1600NS) +VIN4A 7 0 DC 0 PULSE(0 3 0 5NS 5NS 650NS 3200NS) +VIN4B 8 0 DC 0 PULSE(0 3 0 5NS 5NS 1290NS 6400NS) + +*** DEFINE NOMINAL CIRCUIT +X1 1 2 3 4 5 6 7 8 9 10 11 12 0 13 99 FOURBIT + +.option noinit acct +.TRAN 500p 640NS +* save inputs +.save V(1) V(2) V(3) V(4) V(5) V(6) V(7) V(8) + +* use BSIM3 model with default parameters +.model n1 nmos level=49 version=3.3.0 +.model p1 pmos level=49 version=3.3.0 +*.include ./Modelcards/modelcard32.nmos +*.include ./Modelcards/modelcard32.pmos + +.control +if $?batchmode +else +pre_set strict_errorhandling +unset ngdebug +*save outputs and specials +save x1.x1.x1.7 V(9) V(10) V(11) V(12) V(13) +run +display +* plot the inputs, use offset to plot on top of each other +plot v(1) v(2)+4 v(3)+8 v(4)+12 v(5)+16 v(6)+20 v(7)+24 v(8)+28 +* plot the outputs, use offset to plot on top of each other +plot v(9) v(10)+4 v(11)+8 v(12)+12 v(13)+16 +endif +.endc + +.END diff --git a/examples/utf-8/стекло/있어요/adder_mos3.cir b/examples/utf-8/стекло/있어요/adder_mos3.cir new file mode 100644 index 000000000..e84d6a57e --- /dev/null +++ b/examples/utf-8/стекло/있어요/adder_mos3.cir @@ -0,0 +1,85 @@ + 4 BIT ALL-NAND-GATE BINARY ADDER with node names 能 and せん + +*** SUBCIRCUIT DEFINITIONS +.SUBCKT NAND in1 in2 out VDD +* NODES: INPUT(2), OUTPUT, VCC +M1 out in2 Vdd Vdd p1 W=7.5u L=0.35u pd=13.5u ad=22.5p ps=13.5u as=22.5p +M2 net.1 in2 0 0 n1 W=3u L=0.35u pd=9u ad=9p ps=9u as=9p +M3 out in1 Vdd Vdd p1 W=7.5u L=0.35u pd=13.5u ad=22.5p ps=13.5u as=22.5p +M4 out in1 net.1 0 n1 W=3u L=0.35u pd=9u ad=9p ps=9u as=9p +.ENDS NAND + +.SUBCKT ONEдBIT 能 2 せん 4 5 6 +* NODES: INPUT(2), CARRY-IN, OUTPUT, CARRY-OUT, VCC +X1 能 2 7 6 NAND +X2 能 7 8 6 NAND +X나는 2 7 9 6 NAND +X4 8 9 10 6 NAND +X5 せん 10 11 6 NAND +X6 せん 11 12 6 NAND +X7 10 11 13 6 NAND +XЯ8 12 13 4 6 NAND +XЯ9 11 7 5 6 NAND +.ENDS ONEдBIT + +.SUBCKT TWOBIT 1 2 3 4 5 6 7 8 9 +* NODES: INPUT - BIT0(2) / BIT1(2), OUTPUT - BIT0 / BIT1, +* CARRY-IN, CARRY-OUT, VCC +X1 1 2 7 5 10 9 ONEдBIT +X2 3 4 10 6 8 9 ONEдBIT +.ENDS TWOBIT + +.SUBCKT FOURBIT 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 +* NODES: INPUT - BIT0(2) / BIT1(2) / BIT2(2) / BIT3(2), +* OUTPUT - BIT0 / BIT1 / BIT2 / BIT3, CARRY-IN, CARRY-OUT, VCC +X1 1 2 3 4 9 10 13 16 15 TWOBIT +X2 5 6 7 8 11 12 16 14 15 TWOBIT +.ENDS FOURBIT + +*** POWER +V을을 99 0 DC 3.3V + +*** ALL INPUTS +VIN1A 1 0 DC 0 PULSE(0 3 0 5NS 5NS 20NS 50NS) +VIN1B 2 0 DC 0 PULSE(0 3 0 5NS 5NS 30NS 100NS) +VIN2A 3 0 DC 0 PULSE(0 3 0 5NS 5NS 50NS 200NS) +VIN2B 4 0 DC 0 PULSE(0 3 0 5NS 5NS 90NS 400NS) +VIN3A 5 0 DC 0 PULSE(0 3 0 5NS 5NS 170NS 800NS) +VIN3B 6 0 DC 0 PULSE(0 3 0 5NS 5NS 330NS 1600NS) +VIN4A 7 0 DC 0 PULSE(0 3 0 5NS 5NS 650NS 3200NS) +VIN4B 8 0 DC 0 PULSE(0 3 0 5NS 5NS 1290NS 6400NS) + +*** DEFINE NOMINAL CIRCUIT +X1 1 2 3 4 5 6 7 8 9 10 11 身12 0 Я13 99 FOURBIT + +.option noinit acct +.TRAN 500p 6400NS +* save inputs +.save V(1) V(2) V(3) V(4) V(5) V(6) V(7) V(8) + +* use BSIM3 model with default parameters +.model n1 nmos level=49 version=3.3.0 +.model p1 pmos level=49 version=3.3.0 +*.include ./Modelcards/modelcard32.nmos +*.include ./Modelcards/modelcard32.pmos + +.control +* for CYGWIN +setcf xfont='Noto Sans CJK JP Medium' +set xfont_size=16 +if $?batchmode +else +pre_set strict_errorhandling +unset ngdebug +*save outputs and specials +save x1.x1.x1.7 V(9) V(10) V(11) V(身12) V(Я13) +run +display +* plot the inputs, use offset to plot on top of each other +plot v(1) v(2)+4 v(3)+8 v(4)+12 v(5)+16 v(6)+20 v(7)+24 v(8)+28 +* plot the outputs, use offset to plot on top of each other +plot v(9) v(10)+4 v(11)+8 v(身12)+12 v(Я13)+16 +endif +.endc + +.END diff --git a/examples/utf-8/стекло/있어요/ext-utf8-1.cir b/examples/utf-8/стекло/있어요/ext-utf8-1.cir new file mode 100644 index 000000000..47758fa65 --- /dev/null +++ b/examples/utf-8/стекло/있어요/ext-utf8-1.cir @@ -0,0 +1,39 @@ +* test de titré +.control + +* for CYGWIN +setcf xfont='Noto Sans CJK JP Medium' +set xfont_size=16 +* for LINUX +*setcf xfont='Noto Sans Korean' + +let x = vector(5) +let y = exp(x) +setcf wfont='Arial' +set wfont_size=18 +plot y vs x xlabel 'Labellisé X' ylabel 'Labellisé Y: ÜüÖöÄäÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ' title 'Titré 11' +plot y vs x xlabel '我能吞下玻璃而不伤身体' ylabel 'Я могу есть стекло, оно мне не вредит' title 'Titré 12 أنا قادر على أكل الزجاج و هذا لا يؤلمني.' +plot y vs x+0.001 xlabel 'Labellisé X' ylabel 'Labellisé Y' title 'Titré 13 私はガラスを食べられます。それは私を傷つけません' loglog +plot y vs x+0.001 xlabel 'Titré 私はガラスを食べられます。それは私を傷つけません' ylabel '나는 유리를 먹을 수 있어요. 그래도 아프지 않아요' title 'Titré 14 我能吞下玻璃而不伤身体。' loglog + +* for CYGWIN +*setcf xfont='Adobe Times' +* for LINUX +setcf xfont='Efont Biwidth' +plot y vs x+0.001 xlabel 'Labellisé X' ylabel ' أنا قادر على أكل الزجاج و هذا لا يؤلمني.' title 'Titré 15' loglog + +write D:/Spice_general/tests/utf-8/'стекло'/'있어요'/ext-utf8-1.out x y + +setcf sourcepath = ( 'D:/Spice_general/tests/utf-8/стекло/있어요' ) +*setcf sourcepath = ( './utf-8/стекло/있어요' ) +source ext-utf8-2.cir + +*source 'D:/Spice_general/tests/utf-8/стекло/있어요/ext-utf8-2.cir' + +echo 私はガラスを食べられます。それは私を傷つけません +echo 나는 유리를 먹을 수 있어요. 그래도 아프지 않아요 + +gnuplot test.gn y vs x xlabel 'Labellisé X' ylabel 'tüTÄtö Äü @µ€~' title 'ฉันกินกระจกได้ แต่มันไม่ทำให้ฉันเจ็บ ' + +*quit +.endc diff --git a/examples/utf-8/стекло/있어요/ext-utf8-2-있어요.cir b/examples/utf-8/стекло/있어요/ext-utf8-2-있어요.cir new file mode 100644 index 000000000..00dd8d04d --- /dev/null +++ b/examples/utf-8/стекло/있어요/ext-utf8-2-있어요.cir @@ -0,0 +1,46 @@ +* test de titré +.control +set hcopydevtype = postscript +set hcopypscolor=1 +set hcopyscale=0.5 +set color2=rgb:F/0/0 +*setcf hcopyfont=Arial +* +*setcf hcopyfont='Nimbus Mono-Regular' +* for CYGWIN +setcf hcopyfont='NimbusMonL-Bold' +*setcf hcopyfont='URWGothicL-Book' +set hcopyfontsize=14 + +* for CYGWIN +setcf xfont='Noto Sans CJK JP Medium' +set xfont_size=18 +*setcf xfont='Noto Sans Japanese' + +let x = vector(5) +let y = exp(x) +setcf wfont='Arial' +set wfont_size=18 +plot y vs x xlabel 'Labellisé X' ylabel 'Labellisé Y: ÜüÖöÄäÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ' title 'Titré 21' +plot y vs x xlabel '我能吞下玻璃而不伤身体' ylabel 'Я могу есть стекло, оно мне не вредит' title 'Titré 22 أنا قادر على أكل الزجاج و هذا لا يؤلمني.' +plot y vs x+0.001 xlabel 'Labellisé X' ylabel 'Labellisé Y' title 'Titré 23 私はガラスを食べられます。それは私を傷つけません' loglog +*LINUX +*setcf xfont='Noto Sans Korean' +plot y vs x+0.001 xlabel 'Titré 私はガラスを食べられます。それは私を傷つけません' ylabel '나는 유리를 먹을 수 있어요. 그래도 아프지 않아요' title 'Titré 24 我能吞下玻璃而不伤身体。' loglog +* for CYGWIN +setcf xfont='Times New Roman' +plot y vs x+0.001 xlabel 'Labellisé X' ylabel ' أنا قادر على أكل الزجاج و هذا لا يؤلمني.' title 'Titré 25' loglog + +hardcopy plot_5.ps y vs x xlabel 'Labellisé X' ylabel 'Labellisé Y' title 'Titré Äü @µ€~' +* for MS Windows only +*shell Start /B plot_5.ps +* for CYGWIN +shell xterm -e gs plot_5.ps & + +echo 些 𣎏 世 咹 水 晶 𦓡 空 𣎏 害 咦 +echo אני יכול לאכול זכוכית וזה לא מזיק לי. + +*gnuplot test.gn y vs x xlabel 'Labellisé X' ylabel 'tüTÄtö Äü @µ€~' title 'ฉันกินกระจกได้ แต่มันไม่ทำให้ฉันเจ็บ ' + +*quit +.endc diff --git a/examples/utf-8/стекло/있어요/ext-utf8-2.cir b/examples/utf-8/стекло/있어요/ext-utf8-2.cir new file mode 100644 index 000000000..00dd8d04d --- /dev/null +++ b/examples/utf-8/стекло/있어요/ext-utf8-2.cir @@ -0,0 +1,46 @@ +* test de titré +.control +set hcopydevtype = postscript +set hcopypscolor=1 +set hcopyscale=0.5 +set color2=rgb:F/0/0 +*setcf hcopyfont=Arial +* +*setcf hcopyfont='Nimbus Mono-Regular' +* for CYGWIN +setcf hcopyfont='NimbusMonL-Bold' +*setcf hcopyfont='URWGothicL-Book' +set hcopyfontsize=14 + +* for CYGWIN +setcf xfont='Noto Sans CJK JP Medium' +set xfont_size=18 +*setcf xfont='Noto Sans Japanese' + +let x = vector(5) +let y = exp(x) +setcf wfont='Arial' +set wfont_size=18 +plot y vs x xlabel 'Labellisé X' ylabel 'Labellisé Y: ÜüÖöÄäÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ' title 'Titré 21' +plot y vs x xlabel '我能吞下玻璃而不伤身体' ylabel 'Я могу есть стекло, оно мне не вредит' title 'Titré 22 أنا قادر على أكل الزجاج و هذا لا يؤلمني.' +plot y vs x+0.001 xlabel 'Labellisé X' ylabel 'Labellisé Y' title 'Titré 23 私はガラスを食べられます。それは私を傷つけません' loglog +*LINUX +*setcf xfont='Noto Sans Korean' +plot y vs x+0.001 xlabel 'Titré 私はガラスを食べられます。それは私を傷つけません' ylabel '나는 유리를 먹을 수 있어요. 그래도 아프지 않아요' title 'Titré 24 我能吞下玻璃而不伤身体。' loglog +* for CYGWIN +setcf xfont='Times New Roman' +plot y vs x+0.001 xlabel 'Labellisé X' ylabel ' أنا قادر على أكل الزجاج و هذا لا يؤلمني.' title 'Titré 25' loglog + +hardcopy plot_5.ps y vs x xlabel 'Labellisé X' ylabel 'Labellisé Y' title 'Titré Äü @µ€~' +* for MS Windows only +*shell Start /B plot_5.ps +* for CYGWIN +shell xterm -e gs plot_5.ps & + +echo 些 𣎏 世 咹 水 晶 𦓡 空 𣎏 害 咦 +echo אני יכול לאכול זכוכית וזה לא מזיק לי. + +*gnuplot test.gn y vs x xlabel 'Labellisé X' ylabel 'tüTÄtö Äü @µ€~' title 'ฉันกินกระจกได้ แต่มันไม่ทำให้ฉันเจ็บ ' + +*quit +.endc diff --git a/examples/utf-8/стекло/있어요/ext-utf8-3.cir b/examples/utf-8/стекло/있어요/ext-utf8-3.cir new file mode 100644 index 000000000..befc033ac --- /dev/null +++ b/examples/utf-8/стекло/있어요/ext-utf8-3.cir @@ -0,0 +1,33 @@ +* test de titré 있어요 +* appologize for nonsense text + +.control + +* for CYGWIN +setcf xfont='Noto Sans CJK JP Medium' +set xfont_size=18 + +let x = vector(5) +let y = exp(x) +setcf wfont='Arial' +set wfont_size=18 +plot y vs x xlabel 'Labellisé X' ylabel 'Labellisé Y: ÜüÖöÄäÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ' title 'Titré 11' +plot y vs x xlabel '我能吞下玻璃而不伤身体' ylabel 'Я могу есть стекло, оно мне не вредит' title 'Titré 12 أنا قادر على أكل الزجاج و هذا لا يؤلمني.' +plot y vs x+0.001 xlabel 'Labellisé X' ylabel 'Labellisé Y' title 'Titré 13 私はガラスを食べられます。それは私を傷つけません' loglog +plot y vs x+0.001 xlabel 'Titré 私はガラスを食べられます。それは私を傷つけません' ylabel 'Titré 14 나는 유리를 먹을 수 있어요. 그래도 아프지 않아요' title 'Titré 我能吞下玻璃而不伤身体。' loglog + +* for CYGWIN +setcf xfont='Times New Roman' +plot y vs x+0.001 xlabel 'Labellisé X' ylabel ' أنا قادر على أكل الزجاج و هذا لا يؤلمني.' title 'Titré 15' loglog + +setcf sourcepath = ( 'D:/Spice_general/tests/utf-8/стекло/있어요' ) +source ext-utf8-4.cir + +* better to put ouput into single quotes +echo 1 '私はガラスを食べられます。それは私を傷つけません' +echo 2 '나는 유리를 먹을 수 있어요. 그래도 아프지 않아요' + +gnuplot test.gn y vs x xlabel 'Labellisé X' ylabel '있어요 tüTÄtö Äü @µ€~' title 'ฉันกินกระจกได้ แต่มันไม่ทำให้ฉันเจ็บ ' + +*quit +.endc diff --git a/examples/utf-8/стекло/있어요/ext-utf8-4.cir b/examples/utf-8/стекло/있어요/ext-utf8-4.cir new file mode 100644 index 000000000..db4c24e7c --- /dev/null +++ b/examples/utf-8/стекло/있어요/ext-utf8-4.cir @@ -0,0 +1,40 @@ +* test de titré それは私を傷つけません +.control +set hcopydevtype = postscript +set hcopypscolor=1 +set hcopyscale=0.5 +set color2=rgb:F/0/0 +*setcf hcopyfont=Arial +* for CYGWIN +setcf hcopyfont='NimbusMono-Regular' +set hcopyfontsize=14 + +* for CYGWIN +setcf xfont='Noto Sans CJK JP Medium' +set xfont_size=16 + +let x = vector(5) +let y = exp(x) +setcf wfont='Arial' +set wfont_size=18 +plot y vs x xlabel 'Labellisé X' ylabel 'Labellisé Y: ÜüÖöÄäÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ' title 'Titré 21' +plot y vs x xlabel '我能吞下玻璃而不伤身体' ylabel 'Я могу есть стекло, оно мне не вредит' title 'Titré 22 أنا قادر على أكل الزجاج و هذا لا يؤلمني.' +plot y vs x+0.001 xlabel 'Labellisé X' ylabel 'Labellisé Y' title 'Titré 23 私はガラスを食べられます。それは私を傷つけません' loglog +plot y vs x+0.001 xlabel 'Titré 私はガラスを食べられます。それは私を傷つけません' ylabel 'Titré 24 나는 유리를 먹을 수 있어요. 그래도 아프지 않아요' title 'Titré 我能吞下玻璃而不伤身体。' loglog +* for CYGWIN +setcf xfont='Times New Roman' +plot y vs x+0.001 xlabel 'Labellisé X' ylabel ' أنا قادر على أكل الزجاج و هذا لا يؤلمني.' title 'Titré 25' loglog + +hardcopy plot_5.ps y vs x xlabel 'Labellisé X' ylabel 'Labellisé Y' title 'Titré Äü @µ€~' +* for MS Windows only +*shell Start /B plot_5.ps +* for CYGWIN +shell xterm -e gs plot_5.ps & + +echo 3 ' 些 𣎏 世 咹 水 晶 𦓡 空 𣎏 害 咦 ' +echo 4 אני יכול לאכול זכוכית וזה לא מזיק לי. + +*gnuplot test.gn y vs x xlabel 'Labellisé X' ylabel 'tüTÄtö Äü @µ€~' title 'ฉันกินกระจกได้ แต่มันไม่ทำให้ฉันเจ็บ ' + +*quit +.endc diff --git a/examples/utf-8/стекло/있어요/utf-8-inv.cir b/examples/utf-8/стекло/있어요/utf-8-inv.cir new file mode 100644 index 000000000..8853bd3c1 --- /dev/null +++ b/examples/utf-8/стекло/있어요/utf-8-inv.cir @@ -0,0 +1,52 @@ + 4 BIT ALL-NAND-GATE BINARY ADDER with node names 能 and せん + +.param W咦 = 3u + +*** SUBCIRCUIT DEFINITIONS +.SUBCKT NAдND 能 せん out VDD +* NODES: INPUT(2), OUTPUT, VCC +M1 out せん Vdd Vdd p1 W=7.5u L=0.35u pd=13.5u ad=22.5p ps=13.5u as=22.5p +M2 net.1 せん 0 0 n1 W='W咦' L=0.35u pd=9u ad=9p ps=9u as=9p +M3 out 能 Vdd Vdd p1 W=7.5u L=0.35u pd=13.5u ad=22.5p ps=13.5u as=22.5p +M4 out 能 net.1 0 n1 W='W咦' L=0.35u pd=9u ad=9p ps=9u as=9p +.ENDS NAдND + +X않1 1 は2 7 99 NAдND + +*** POWER +V을을 99 0 DC 3.3V + +*** ALL INPUTS +VIN1A 1 0 DC 0 PULSE(0 3 0 5NS 5NS 20NS 50NS) +VIN1B は2 0 DC 0 PULSE(0 3 0 5NS 5NS 30NS 100NS) + +.option noinit acct +.TRAN 500p 6400NS +* save inputs +.save V(1) V(は2) V(7) + +* use BSIM3 model with default parameters +.model n1 nmos level=49 version=3.3.0 +.model p1 pmos level=49 version=3.3.0 +*.include ./Modelcards/modelcard32.nmos +*.include ./Modelcards/modelcard32.pmos + +.control +* for CYGWIN +setcf xfont='Noto Sans CJK JP Medium' +set xfont_size=16 +if $?batchmode +else +pre_set strict_errorhandling +unset ngdebug +*save outputs and specials +run +display +* plot the inputs and outputs, use offset to plot on top of each other +let れ1 = 4 +let れ2 = 8 +plot v(1) v(は2)+れ1 v(7)+れ2 +endif +.endc + +.END diff --git a/examples/utf-8/стекло/있어요/utf-8-inv_w.cir b/examples/utf-8/стекло/있어요/utf-8-inv_w.cir new file mode 100644 index 000000000..adeccc347 --- /dev/null +++ b/examples/utf-8/стекло/있어요/utf-8-inv_w.cir @@ -0,0 +1,53 @@ + 4 BIT ALL-NAND-GATE BINARY ADDER with node names 能 and せん + +.param W咦 = 3u + +*** SUBCIRCUIT DEFINITIONS +.SUBCKT NAдND 能 せん out VDD +* NODES: INPUT(2), OUTPUT, VCC +M1 out せん Vdd Vdd p1 W=7.5u L=0.35u pd=13.5u ad=22.5p ps=13.5u as=22.5p +M2 net.1 せん 0 0 n1 W='W咦' L=0.35u pd=9u ad=9p ps=9u as=9p +M3 out 能 Vdd Vdd p1 W=7.5u L=0.35u pd=13.5u ad=22.5p ps=13.5u as=22.5p +M4 out 能 net.1 0 n1 W='W咦' L=0.35u pd=9u ad=9p ps=9u as=9p +.ENDS NAдND + +X않1 1 は2 7 99 NAдND + +*** POWER +V을을 99 0 DC 3.3V + +*** ALL INPUTS +VIN1A 1 0 DC 0 PULSE(0 3 0 5NS 5NS 20NS 50NS) +VIN1B は2 0 DC 0 PULSE(0 3 0 5NS 5NS 30NS 100NS) + +.option noinit acct +.TRAN 500p 500NS +* save inputs +.save V(1) V(は2) V(7) + +* use BSIM3 model with default parameters +.model n1 nmos level=49 version=3.3.0 +.model p1 pmos level=49 version=3.3.0 +*.include ./Modelcards/modelcard32.nmos +*.include ./Modelcards/modelcard32.pmos + +.control +* for CYGWIN +setcf xfont='Noto Sans CJK JP Medium' +set xfont_size=16 + +if $?batchmode +else +pre_set strict_errorhandling +unset ngdebug +*save outputs and specials +run +display +* plot the inputs and outputs, use offset to plot on top of each other +let れ1 = 4 +let れ2 = 8 +plot v(1) v(は2)+れ1 v(7)+れ2 +endif +.endc + +.END