Difference between revisions of "Hebrew.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Update function See also links and function index membership)
(removed link to deleted function page summary.m (removed per IK instruction 2026-08-30))
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
{{DISPLAYTITLE:hebrew.m}} __NOTOC__
 
{{DISPLAYTITLE:hebrew.m}} __NOTOC__
−
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.
+
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. The Excel files should contain Hebrew vocabulary in separate spreadsheets:
 +
 
 +
      nouns.xlsx - English, masculine singular, feminine singular,
 +
                    masculine plural, feminine plural, invariant,
 +
                    notes
 +
      adverbs.xlsx, directions.xlsx, greetings.xlsx, languages.xlsx,
 +
                    numbers.xlsx, particles.xlsx, phrases.xlsx,
 +
                    prepositions.xlsx, pronouns.xlsx,
 +
                    proper_nouns.xlsx, quantifiers.xlsx,
 +
                    sex_terms.xlsx, weekdays.xlsx - same columns as
 +
                    nouns.xlsx
 +
      adjectives.xlsx - English, masculine singular, feminine singular,
 +
                        masculine plural, feminine plural, notes
 +
      question_words.xlsx - English, masculine singular,
 +
                            feminine singular, masculine plural,
 +
                            feminine plural, invariant, notes
 +
      verbs.xlsx - English, infinitive, masculine singular,
 +
                    feminine singular, masculine plural,
 +
                    feminine plural, notes
  
 
==Syntax==
 
==Syntax==
−
 
−
 
  
 
     hebrew()
 
     hebrew()
Line 10: Line 26:
 
     ncards=hebrew(mode,max_cards)
 
     ncards=hebrew(mode,max_cards)
 
     hebrew('gui')
 
     hebrew('gui')
−
 
  
 
==Parameters==
 
==Parameters==
Line 22: Line 37:
 
     max_cards - maximum number of cards to show. Use zero to load the
 
     max_cards - maximum number of cards to show. Use zero to load the
 
                 spreadsheets, return the card count, and exit
 
                 spreadsheets, return the card count, and exit
−
 
  
 
==Outputs==
 
==Outputs==
  
 
     ncards - number of usable flashcards loaded from the spreadsheets
 
     ncards - number of usable flashcards loaded from the spreadsheets
−
 
  
 
==Notes==
 
==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.
 
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]], [[banner.m]], [[cacheman.m]], [[compile_mex.m]], [[dipolar.m]], [[existentials.m]], [[exorcise.m]], [[iseye.m]], [[patrol.m]], [[rearm.m]], [[report.m]], [[sniff.m]], [[summary.m]], [[symmetry.m]], [[tolerances.m]], [[wipe_cache.m]], [[Kernel_utilities]]
+
[[forum.m]], [[wiki.m]], [[banner.m]], [[cacheman.m]], [[compile_mex.m]], [[dipolar.m]], [[existentials.m]], [[exorcise.m]], [[iseye.m]], [[patrol.m]], [[rearm.m]], [[report.m]], [[sniff.m]], [[symmetry.m]], [[tolerances.m]], [[wipe_cache.m]], [[Kernel_utilities]]
  
 
''Version 2.11, authors: [[Ilya Kuprov]]''
 
''Version 2.11, authors: [[Ilya Kuprov]]''

Latest revision as of 09:12, 30 August 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. The Excel files should contain Hebrew vocabulary in separate spreadsheets:

      nouns.xlsx - English, masculine singular, feminine singular,
                   masculine plural, feminine plural, invariant,
                   notes
      adverbs.xlsx, directions.xlsx, greetings.xlsx, languages.xlsx,
                   numbers.xlsx, particles.xlsx, phrases.xlsx,
                   prepositions.xlsx, pronouns.xlsx,
                   proper_nouns.xlsx, quantifiers.xlsx,
                   sex_terms.xlsx, weekdays.xlsx - same columns as
                   nouns.xlsx
      adjectives.xlsx - English, masculine singular, feminine singular,
                        masculine plural, feminine plural, notes
      question_words.xlsx - English, masculine singular,
                            feminine singular, masculine plural,
                            feminine plural, invariant, notes
      verbs.xlsx - English, infinitive, masculine singular,
                   feminine singular, masculine plural,
                   feminine plural, notes

Syntax

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

Parameters

    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, banner.m, cacheman.m, compile_mex.m, dipolar.m, existentials.m, exorcise.m, iseye.m, patrol.m, rearm.m, report.m, sniff.m, symmetry.m, tolerances.m, wipe_cache.m, Kernel_utilities

Version 2.11, authors: Ilya Kuprov