Jump to content

User:GSMR/sandbox: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
No edit summary
No edit summary
Line 1: Line 1:
{{User sandbox}}
{{User sandbox}}
{| class="wikitable"
<!-- Edit BELOW this line -->
|-

! [[Ancient Greek|Greek]]
<syntaxhighlight lang="c">
! title="Classical Latinate"| Classical{{citation needed|date=May 2019}}
#include <stdio.h>
! title="Modern Scholarship"| {{nowrap|[[ALA-LC romanization|ALA-LC]]<ref name=ala-lc>The Library of Congress. [https://www.loc.gov/catdir/cpso/roman.html ALA-LC Romanization Tables]: "[https://www.loc.gov/catdir/cpso/romanization/greek.pdf Greek]". 2010.</ref>}}<br><small>(2010)</small>
#include <stdlib.h>
! {{nowrap|[[Beta Code]]<ref name=TLGr>Thesaurus Linguae Graecae. "[https://web.archive.org/web/20140221210442/http://www.tlg.uci.edu/encoding/BCM2013.pdf The TLG® Beta Code Manual 2013]". University of California (Irvine), 2013.</ref>}}

|-
typedef unsigned char byte;
| <big>{{lang|grc|[[alpha|α]]}}</big> || a || a || A

|-
int __cdecl wmain(int argc, wchar_t *argv[])
| <big>{{lang|grc|[[Greek orthography#Digraphs and diphthongs|αι]]}}</big> || ae || ai || AI
{
|-
byte *buffer = NULL;
| <big>{{lang|grc|[[beta|β]]}}</big> || b || b || B
size_t len;
|-
FILE *fp;
| rowspan="2" | <big>{{lang|grc|[[gamma|γ]]}}</big> || g || g || rowspan="2" | G
errno_t err;
|-
| {{nowrap|n <ref group="n." name="gamma">Before another velar stop, i.e. in the combinations {{lang|grc|γγ, γκ, γξ, γχ}}</ref>}} || {{nowrap|n <ref group="n." name="gamma"/>}}
if(argc<2)
|-
{
| <big>{{lang|grc|[[delta (letter)|δ]]}}</big> || d || d || D
_putws(L"Usage: cat filename");
|-
return 0;
| <big>{{lang|grc|[[epsilon|ε]]}}</big> || e || e || E
}
|-
| <big>{{lang|grc|[[Greek orthography#Digraphs and diphthongs|ει]]}}</big> || e or i || ei || EI
err = _wfopen_s(&fp, argv[1], L"rb");
| <big>{{lang|grc|[[zeta|ζ]]}}</big> || z || z || Z
if(err != 0)
|-
{
| <big>{{lang|grc|[[eta|η]]}}</big> || e || ē || H
_wperror(L"_wfopen_s");
|-
exit(EXIT_FAILURE);
| <big>{{lang|grc|[[theta|θ]]}}</big> || th || th || Q
}
|-
| <big>{{lang|grc|[[iota|ι]]}}</big> || i || i || I
fseek(fp, 0, SEEK_END);
|-
len = ftell(fp);
| <big>{{lang|grc|[[kappa|κ]]}}</big> || c || k || K
rewind(fp);
| <big>{{lang|grc|[[lambda|λ]]}}</big> || l || l || L
buffer = (byte *)malloc(len + 1);
|-
if(!buffer)
| <big>{{lang|grc|[[mu (letter)|μ]]}}</big> || m || m || M
{
|-
_putws(L"Could not allocate memory to display the file");
| <big>{{lang|grc|[[nu (letter)|ν]]}}</big> || n || n || N
fclose(fp);
|-
return -1;
| <big>{{lang|grc|[[xi (letter)|ξ]]}}</big> || x || x || C
}
| <big>{{lang|grc|[[omicron|ο]]}}</big> || o || o || O
fread(buffer, 1, len, fp);
|-
fclose(fp);
| <big>{{lang|grc|[[Greek orthography#Digraphs and diphthongs|οι]]}}</big> || oe || oi || OI
buffer[len] = 0;
|-
wprintf_s(L"%S\n", buffer);
| rowspan="2"| <big>{{lang|grc|[[Greek orthography#Digraphs and diphthongs|ου]]}}</big> || u || rowspan="2" | ou || rowspan="2" | OU

|-
free(buffer);
| o
buffer = NULL;
|-

| <big>{{lang|grc|[[pi (letter)|π]]}}</big> || p || p || P
return 0;
|-
}
| rowspan="2"| <big>{{lang|grc|[[rho|ρ]]}}</big> || {{nowrap|rh <ref group="n." name="rh">In ancient Greek, word-initial [[rho]]—a rho at the beginning of a word or name—and the second in a pair of medial rhos were always considered to involve [[rough breathing]] whether [[#Diacritical marks|marked]] or not.</ref>}} || {{nowrap|rh <ref group="n." name="rh"/>}} || rowspan="2" | R
</syntaxhighlight>
|-
<!-- test -->
| r || r

|-

| <big>{{lang|grc|[[medial sigma|σ]]}}</big> ||rowspan=2| s ||rowspan=2| s || S / S1
<syntaxhighlight lang="asm">
|-
.386
| <big>{{lang|grc|[[final sigma|ς]]}}</big> || S / S2 / J
.MODEL FLAT, STDCALL
|-
.DATA
| <big>{{lang|grc|[[tau|τ]]}}</big> || t || t || T
INCLUDELIB MSVCRT
|-
EXTRN printf:PROC
| rowspan="2"| <big>{{lang|grc|[[upsilon|υ]]}}</big> || y || y || rowspan="2" | U
FMT DB "Hello World", 10, 0
|-
.CODE
| {{nowrap|u <ref group="n." name="diphth_u">In the diphthongs {{lang|grc|αυ, ευ, ηυ, ου, υι, ωυ}}.</ref>}} || {{nowrap|u <ref group="n." name="diphth_u" />}}
main PROC
|-
PUSH OFFSET FMT
| <big>{{lang|grc|[[Greek orthography#Digraphs and diphthongs|υι]]}}</big> || ui or yi || ui || UI
PUSH OFFSET RA1
|-
JMP printf
| <big>{{lang|grc|[[phi|φ]]}}</big> || ph || ph || F
RA1:
|-
ADD ESP, 8
| <big>{{lang|grc|[[khi|χ]]}}</big> || ch || ch || X
XOR EAX, EAX
|-
JMP DWORD PTR [ESP-4]
| <big>{{lang|grc|[[psi (Greek)|ψ]]}}</big> || ps || ps || Y
main ENDP
|-
END
| <big>{{lang|grc|[[omega|ω]]}}</big> || o || ō || W
|}
</syntaxhighlight>

Revision as of 22:22, 18 September 2021

Greek Classical[citation needed] ALA-LC[1]
(2010)
Beta Code[2]
α a a A
αι ae ai AI
β b b B
γ g g G
n [n. 1] n [n. 1]
δ d d D
ε e e E
ει e or i ei EI
ζ z z Z
η e ē H
θ th th Q
ι i i I
κ c k K
λ l l L
μ m m M
ν n n N
ξ x x C
ο o o O
οι oe oi OI
ου u ou OU
o
π p p P
ρ rh [n. 2] rh [n. 2] R
r r
σ s s S / S1
ς S / S2 / J
τ t t T
υ y y U
u [n. 3] u [n. 3]
υι ui or yi ui UI
φ ph ph F
χ ch ch X
ψ ps ps Y
ω o ō W
  1. ^ The Library of Congress. ALA-LC Romanization Tables: "Greek". 2010.
  2. ^ Thesaurus Linguae Graecae. "The TLG® Beta Code Manual 2013". University of California (Irvine), 2013.


Cite error: There are <ref group=n.> tags on this page, but the references will not show without a {{reflist|group=n.}} template (see the help page).