Difference between revisions of "Hebrew.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Add See also section to function-description page)
m (Update Hebrew flashcards function page from current Spinach source)
Line 1: Line 1:
 
{{DISPLAYTITLE:hebrew.m}} __NOTOC__
 
{{DISPLAYTITLE:hebrew.m}} __NOTOC__
  
−
IK's Hebrew flashcards function. The Excel file should contain
+
IK's Hebrew flashcards function. It loads Hebrew vocabulary spreadsheets stored next to the function, including nouns, adjectives, verbs, question words, and other word-class files. Each spreadsheet contains English prompts and the relevant Hebrew grammatical forms; incomplete entries and entries without Hebrew text are ignored.
−
three text columns:
 
  
−
      A) English words
+
==Syntax==
−
      B) Hebrew translations
+
 
−
      C) Latin transliterations
+
 
 +
 
 +
    hebrew()
 +
    hebrew(mode)
 +
    ncards=hebrew(mode,max_cards)
 +
    hebrew('gui')
 +
 
 +
 
 +
==Arguments==
 +
 
 +
    mode      - 'forward', 'backward', 'both', or 'gui'. In forward
 +
                mode, English is shown first and Hebrew is revealed
 +
                after <Enter>. In backward mode, Hebrew is shown first
 +
                and English is revealed after <Enter>. In both mode,
 +
                the direction is random on every card. Default is 'both'
 +
 
 +
    max_cards - maximum number of cards to show. Use zero to load the
 +
                spreadsheets, return the card count, and exit
 +
 
 +
 
 +
==Outputs==
  
−
It repeatedly shows a random Hebrew word, waits for <Enter>,
+
    ncards - number of usable flashcards loaded from the spreadsheets
−
then reveals the English word and its transliteration. Exit
 
−
with CTRL+C.
 
  
−
==Syntax==
 
  
−
hebrew(xlsFile) %#NHEAD
+
==Notes==
 +
 
 +
Open-ended command-line runs are stopped with CTRL+C. In GUI mode, a one-button graphical flashcard window is opened; the button reveals the answer on the first click and advances to another randomly selected card on the second click.
  
 
==See also==
 
==See also==
 
[[forum.m]], [[wiki.m]], [[Kernel_utilities#Housekeeping_functions|Housekeeping functions]]
 
[[forum.m]], [[wiki.m]], [[Kernel_utilities#Housekeeping_functions|Housekeeping functions]]

Revision as of 14:27, 5 June 2026


IK's Hebrew flashcards function. It loads Hebrew vocabulary spreadsheets stored next to the function, including nouns, adjectives, verbs, question words, and other word-class files. Each spreadsheet contains English prompts and the relevant Hebrew grammatical forms; incomplete entries and entries without Hebrew text are ignored.

Syntax

    hebrew()
    hebrew(mode)
    ncards=hebrew(mode,max_cards)
    hebrew('gui')


Arguments

    mode      - 'forward', 'backward', 'both', or 'gui'. In forward
                mode, English is shown first and Hebrew is revealed
                after <Enter>. In backward mode, Hebrew is shown first
                and English is revealed after <Enter>. In both mode,
                the direction is random on every card. Default is 'both'
    max_cards - maximum number of cards to show. Use zero to load the
                spreadsheets, return the card count, and exit


Outputs

    ncards - number of usable flashcards loaded from the spreadsheets


Notes

Open-ended command-line runs are stopped with CTRL+C. In GUI mode, a one-button graphical flashcard window is opened; the button reveals the answer on the first click and advances to another randomly selected card on the second click.

See also

forum.m, wiki.m, Housekeeping functions