Skip to content

node-to-type/Glyphs3-Random-Text-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

18 Commits
ย 
ย 
ย 
ย 

Repository files navigation

Glyphs 3 - Random Text Generator

This script fetches a random article from Wikipedia in a selected language and displays its plain text content in the current Edit View of Glyphs 3.

์ด ์Šคํฌ๋ฆฝํŠธ๋Š” ์„ ํƒํ•œ ์–ธ์–ด์˜ ์œ„ํ‚คํ”ผ๋””์•„์—์„œ ๋ฌด์ž‘์œ„ ๋ฌธ์„œ๋ฅผ ๊ฐ€์ ธ์™€ Glyphs 3์˜ ํ˜„์žฌ ํŽธ์ง‘ ๋ณด๊ธฐ์— ์ผ๋ฐ˜ ํ…์ŠคํŠธ ๋‚ด์šฉ์„ ํ‘œ์‹œํ•ฉ๋‹ˆ๋‹ค.

sampleTest.mp4

Features

  • Fetches random articles from either the English or Korean Wikipedia.
  • Ensures the fetched text is of a reasonable length (between 100 and 1000 characters).
  • Automatically retries if it fails to fetch an article or if the article is too short.
  • Provides a button to open the original Wikipedia article in your web browser(CC BY-SA 4.0).

Installation

  1. Download: Click the green "Code" button on the repository page and select "Download ZIP".
  2. Unzip: Unzip the downloaded file. You will get a folder named Glyphs3-Random-Text-Generator-main.
  3. Open Glyphs Scripts Folder: In Glyphs 3, go to Script > Open Scripts Folder.
  4. Copy Folder: Move the unzipped folder (Glyphs3-Random-Text-Generator-main) into the Scripts folder.
  5. Reload Scripts: Go back to Glyphs and select Script > Reload Scripts (or press Cmd+Opt+Shift+Y).

How to Use

  1. Open a font file in Glyphs 3.
  2. Go to Script > Glyphs3-Random-Text-Generator-main > Get Random Wikipedia Text.
  3. A floating window will appear. Select your desired language, then click the Generate Sample Text button.
  4. The text will appear in your current Edit View. If no tab is open, a new one will be created.

์ฃผ์š” ๊ธฐ๋Šฅ

  • ์˜์–ด ๋˜๋Š” ํ•œ๊ตญ์–ด ์œ„ํ‚คํ”ผ๋””์•„์—์„œ ๋ฌด์ž‘์œ„ ๋ฌธ์„œ๋ฅผ ๊ฐ€์ ธ์˜ต๋‹ˆ๋‹ค.
  • ๊ฐ€์ ธ์˜จ ํ…์ŠคํŠธ๊ฐ€ ์ ์ ˆํ•œ ๊ธธ์ด(100์ž์—์„œ 1000์ž ์‚ฌ์ด)๋กœ ๋ฌธ์žฅ์„ ๋ถˆ๋Ÿฌ์˜ต๋‹ˆ๋‹ค.
  • ๋ฌธ์„œ ๊ฐ€์ ธ์˜ค๊ธฐ์— ์‹คํŒจํ•˜๊ฑฐ๋‚˜ ๊ธ€์ด ๋„ˆ๋ฌด ์งง์„ ๊ฒฝ์šฐ ์ž๋™์œผ๋กœ ์žฌ์‹œ๋„ํ•ฉ๋‹ˆ๋‹ค.
  • ์›๋ณธ ์œ„ํ‚คํ”ผ๋””์•„ ๊ธฐ์‚ฌ๋ฅผ ์›น ๋ธŒ๋ผ์šฐ์ €์—์„œ ์—ด ์ˆ˜ ์žˆ๋Š” ๋ฒ„ํŠผ์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค(CC BY-SA 4.0).

์„ค์น˜ ๋ฐฉ๋ฒ•

  1. ๋‹ค์šด๋กœ๋“œ: ์ €์žฅ์†Œ ํŽ˜์ด์ง€์—์„œ ๋…น์ƒ‰ "Code" ๋ฒ„ํŠผ์„ ํด๋ฆญํ•˜๊ณ  "Download ZIP"์„ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.
  2. ์••์ถ• ํ•ด์ œ: ๋‹ค์šด๋กœ๋“œํ•œ ํŒŒ์ผ์˜ ์••์ถ•์„ ํ•ด์ œํ•ฉ๋‹ˆ๋‹ค. Glyphs3-Random-Text-Generator-main์ด๋ผ๋Š” ์ด๋ฆ„์˜ ํด๋”๊ฐ€ ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค.
  3. Glyphs ์Šคํฌ๋ฆฝํŠธ ํด๋” ์—ด๊ธฐ: Glyphs 3 ์ƒ๋‹จ ๋ฉ”๋‰ด์—์„œ ์Šคํฌ๋ฆฝํŠธ > ์Šคํฌ๋ฆฝํŠธ ํด๋” ์—ด๊ธฐ๋ฅผ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.
  4. ํด๋” ๋ณต์‚ฌ: ์••์ถ• ํ•ด์ œํ•œ ํด๋”(Glyphs3-Random-Text-Generator-main)๋ฅผ Scripts ํด๋” ์•ˆ์œผ๋กœ ์ด๋™ํ•ฉ๋‹ˆ๋‹ค.
  5. ์Šคํฌ๋ฆฝํŠธ ์ƒˆ๋กœ๊ณ ์นจ: Glyphs ์•ฑ์œผ๋กœ ๋Œ์•„์™€ ์Šคํฌ๋ฆฝํŠธ > ์Šคํฌ๋ฆฝํŠธ ์ƒˆ๋กœ๊ณ ์นจ์„ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค. (๋‹จ์ถ•ํ‚ค: Cmd+Opt+Shift+Y)

์‚ฌ์šฉ ๋ฐฉ๋ฒ•

  1. Glyphs 3์—์„œ ํฐํŠธ ํŒŒ์ผ์„ ์—ฝ๋‹ˆ๋‹ค.
  2. ์ƒ๋‹จ ๋ฉ”๋‰ด์—์„œ ์Šคํฌ๋ฆฝํŠธ > Glyphs3-Random-Text-Generator-main > Get Random Wikipedia Text๋ฅผ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.
  3. ์ž‘์€ ์ฐฝ์ด ๋‚˜ํƒ€๋‚˜๋ฉด, ์›ํ•˜๋Š” ์–ธ์–ด๋ฅผ ์„ ํƒํ•œ ๋’ค ์ƒ˜ํ”Œ ํ…์ŠคํŠธ ๋ฒ„ํŠผ ์ƒ์„ฑ ๋ฒ„ํŠผ์„ ๋ˆ„๋ฅด์„ธ์š”.
  4. ํ˜„์žฌ ํŽธ์ง‘ ์ฐฝ์— ํ…์ŠคํŠธ๊ฐ€ ๋‚˜ํƒ€๋‚ฉ๋‹ˆ๋‹ค. ์—ด๋ ค ์žˆ๋Š” ํƒญ์ด ์—†๋‹ค๋ฉด ์ƒˆ ํƒญ์ด ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค.

Supported Languages / ์ง€์› ์–ธ์–ด

This script supports fetching random Wikipedia text in the following languages:

  • English (en)
  • ํ•œ๊ตญ์–ด / Korean (ko)
  • ๆ—ฅๆœฌ่ชž / Japanese (ja)
  • ไธญๆ–‡ / Chinese (zh)
  • Deutsch / German (de)
  • Franรงais / French (fr)
  • Espaรฑol / Spanish (es)
  • ะ ัƒััะบะธะน / Russian (ru)
  • Tiแบฟng Viแป‡t / Vietnamese (vi)
  • ุงู„ุนุฑุจูŠุฉ / Arabic (ar)

If you have any questions or encounter any issues, please let me know. Contact: node.to.type@gmail.com

About

This script fetches a random article from Wikipedia in a selected language and displays its plain text content in the current Edit View of Glyphs 3.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages