|
--- |
|
license: cc-by-4.0 |
|
language: |
|
- km |
|
pretty_name: khmerfonts |
|
--- |
|
|
|
|
|
## Dataset Info |
|
|
|
**Total files**: 26,860 files == (`(num_fonts * num_sentences) - (num_0_byte_fonts)`) |
|
|
|
**Total fonts**: 2,972 fonts |
|
|
|
**Total sentences**: 10 |
|
|
|
## Dataset Creation Info |
|
|
|
All images were downloaded from [khmerfonts.info](https://khmerfonts.info) by using a script below: |
|
|
|
```python |
|
with open("filelist.txt", "w") as outfile: |
|
items = [ |
|
f"https://www.khmerfonts.info/preview.php?font={font + 1}&sample={sample + 1}\n\tout=khmerfonts-{font + 1}-{sample + 1}.png" |
|
for font in range(2972) # maximum id at the moment |
|
for sample in range(10) |
|
] |
|
outfile.write("\n".join(items)) |
|
``` |
|
|
|
Download all files using `aria2c` |
|
|
|
```shell |
|
aria2c -i filelist.txt -d data -j16 |
|
``` |
|
|
|
Find 0-byte files and delete |
|
|
|
```shell |
|
find data/ -size 0 -delete |
|
``` |
|
|
|
|
|
```python |
|
sentences = [ |
|
"ααΆαα·βααΆαβαα·αβααΉαβαα½α ααααΆαβααβαα½αβαααβα
ααβααΆαα ααααΎαβααααβααβααΆααβααΆααβ αααα½αβα α·αβααααααβααααΆααβααΎβαααα½α α", |
|
"α
αβα’αααΈβαα·αβααΆααβααααΎβαααααΆα ααΆαβα’αααΈβαα·αβααααΎβααΆαβααααα·ααααα· ααααΆααβα’αααΈβαα·αβααααΎββα
α·αααβα’αα αααβ ααΆα
βα’αααΈβαα·αβααααΎβα
α·αααβααΆααΆ α", |
|
"α
ααααβαα·ααααΆβαααβα
ααβα
αΆαα αα»αβααΆβαααααααα·βααααΌαβααΆα αααβααΈβααααααααβα’ααβααα»ααααΆα αααβααβααΆαβααααΆααβα’αΆααααα α", |
|
"αααααβααααΆβαααα»αβαααα½ααΆα ααΌα
βααααΆαβααΆααΆβαααα αΆαβααΆαα· αααααααααΆαααα»αβαααααααΆαα· ααΌα
βααΆαβαααααβαααα αΆαβα
αα α", |
|
"ααΆααβαααα½αβα
ααααΆααβααααααβαααααααααΆα αα½αβααααΆα
βαααα½αβααααΆαβααΆβαααααααααΆ ααααααβααααΌαβαα·αβαα½ααβαααΆ αααΉααα
αα
αΆβα₯αβα’αΆαα»α α", |
|
"αα»αβαα·αβααβαααβα
ααααααΎβαααααααΈ ααα’ααβααααΎαβαααααΈβααΆαα’ααβααα ααααΌαβαααβααααΎβααΆβααα·αα ααΎαβααΆαααααααβαβαα
βααΆαβααααα α", |
|
"ααααΆβααααΆαα’αα αααααΈβαααααα αααααΆβααΆααΆα αα·αβααΉαβαααααααααΆα αα½αβααααα·αααΆαα· ααααΎαβααΆβα’αΆαα ααΆβα’αααβαααααβαααα α", |
|
"ααααΆαβαααβαααβααΎαβααα·αα»α αααααΆβα²ααβαα»αααβα
αΆαβαααααααΆ αα½αβααααΆαααβααααααβααΆααβαααααΆ αααβαααβαα»ααααΆβαααααΆβαα½α α", |
|
"α
ααβααα’βα α½αβααΆα α
ααβααΆαβα α½αβααααΆαβαααα·αβααΆααααΆ αα·αβααΆαβααΌα
βααα ααααβααααΆααααΆ ααΌα
βααΆαααααααααΆ αα½αβααΆαβααααα α", |
|
"ααΆαα·βααα»αααβααΆαβαααβαα·αβαα·α αα»αβααβααααΎβαα·αααβααΆαβαααα ααα»αααβαα»α
αα·αβα
α·αααβααααα»αα αααα‘αΆααβαααααβα
α·αααβα²ααβααααΎ α", |
|
] |
|
``` |
|
|