Skip to content

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.

Notifications You must be signed in to change notification settings

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

No packages published

Languages