40

Several times, the community has discussed and requested an easier way to link to sources. So recently, with the help of Hashem yisborach, and @Menachem, I threw together a quick script to do just that.

It links to Tanach and most of Talmud Bavli, and with the help of the community, we've added Rambam's Mishna Torah, and subsequently Shulchan Aruch and Kitzur Shulchan Aruch. Though it has lots of features, the markdown-like syntax is simple, and it accepts many spellings and abbreviations. It also accepts "flags", extra options that that can be added at the end of the reference.

More syntax rules available here, and in Menachem's excellent write-up below.


  • Want to download it? Click here for instructions
  • Want to see the code? Click here
  • Found a bug? Add a spelling or abbreviation? Request a feature? Ping @HodofHod in this chat room
  • Just want to say thanks? A lot of people contributed to make this happen. @Menachem, @msh210, @CharlesKoppelman, @IsaacMoses, @MonicaCellio, @DoubleAA, are just the ones at the tip of my tongue.

If people find this useful and convenient, I will continue developing it, adding more features and sources, so please let me know!


Also, the formatting on this question is driving me meshugeh. If anyone can figure out a cleaner more accessible form, please edit it!

  • Splendid! Thank you very much for writing this user script. Could someone please add support for linking to Yona Newman's bilingual Kitzur Shulchan Aruch, to Chabad's almost-complete Mishneh Torah in English, and to the Dafyomi Advancement Forum's English-language point-by-point outlines of all of Shas? – unforgettableid Dec 19 '14 at 0:35
  • @unforgettableid, look down. Already got two out of three. :) – HodofHod Dec 19 '14 at 0:37
  • Ah. I was only looking at the question — not the answer. :) – unforgettableid Dec 19 '14 at 0:41
  • Could you please tag the question as [wiki], so that we can edit it? – unforgettableid Dec 19 '14 at 0:43
  • The automagical transliteration feature is impressive. You might be able to simplify the user script by replacing the comma-separated lists of possible transliterations with regular expressions. – unforgettableid Dec 19 '14 at 0:51
  • Hmmm. It looks like GitHub hosts a bug tracker for the user script. Intriguing. – unforgettableid Dec 19 '14 at 8:41
  • If you crossed out "and" in the first paragraph because of where it says on Sotah 38b "דאמר רבי יהושע בן לוי אפילו מחיצה של ברזל אינה מפסקת בין ישראל לאביהם שבשמים", that actually indicates that the "and" poses no problem; if an iron partition can't separate between a Jew and our Father in Heaven, a three-letter conjunction certainly can't. :) – Fred Jul 19 '15 at 23:16
14

Valid for version: 4.1.0

HELP: Typing [h] or [help] will display this documentation.

SYNTAX:

[{SCOPE} ({BOOK}|{SECTION}) ({CHAPTER} ({VERSE}|{HALACHA})|{PAGE}) {FLAGS}]

SCOPE: What are you trying to link to, possible options include

  • t -- Tanach
    • [{SCOPE} {BOOK} {CHAPTER} {VERSE} {FLAGS}]
    • {VERSE} {FLAGS} are optional
    • Available Flags: l u r m s
  • g -- Gemara (Talmud Bavli)
    • [{SCOPE} {BOOK} {PAGE} {FLAGS}]
    • {FLAGS} is optional
    • Available Flags: l u t
  • mt -- Mishna Torah (Rambam)
    • [{SCOPE} {SECTION} {CHAPTER} {HALACHA} {FLAGS}]
    • {CHAPTER} {HALACHA} {FLAGS} are optional
    • Available Flags: l u e h
  • ksa -- Kitzur Shulchan Aruch
    • [{SCOPE} {CHAPTER} {HALACHA} {FLAGS}]
    • {HALACHA} {FLAGS} are optional
    • Available Flags: l u
  • sa -- Shulchan Aruch
    • [{SCOPE} {SECTION} {CHAPTER} {HALACHA} {FLAGS}]
    • {HALACHA} {FLAGS} are optional
    • Available flags l u
    • Note: The syntax accepts a se'if/halacha number, but Hebrewbooks does not support linking directly to these, so the link will go to the beginning of the siman/chapter.

BOOK|SECTION: Which Book|Section in the SCOPE are you trying to link to?

  • A wide variety of spellings for the different books in the different scopes are supported

CHAPTER: Which Chapter in the BOOK|SECTION are you trying to link to?

  • Only valid chapters for the BOOK|SECTION are supported.
  • Mandatory for Tanach, KS"A, and Shulchan Aruch.
  • Optional for Mishna Torah.

VERSE: Which verse in the CHAPTER do you want to link to

  • For Tanach SCOPE
  • Optional

HALACHA: Which Halacaha in the CHAPTER or SECTION do you want to link to

  • Optional for Mishna Torah SCOPE
  • Optional for KS"A SCOPE
  • Optional for Shulchan Aruch SCOPE

PAGE: Which page in the BOOK of the Gemara do you want to link to

  • For Gemara SCOPE
  • Mandatory
  • Must be in ?A or ?B format, e.g. 3A or 3B (or 3a, 3b, it is not case sensitive)

FLAGS: Flags can be used together with other Flags

  • Universal

    • l -- Instead of generating a link, create hyperlinked text

    • u -- When creating hyperlink text, instead of using default spelling, use actual spelling entered

      • affects BOOK|SECTION
  • Tanach

    • r -- show Rashi on chapter on Chabad.org

      • ignored when using Mechon Mamre or Sefaria link
    • m -- use Mechon Mamre link instead of Chabad.org

    • s -- use Sefaria.org link instead of Chabad.org

  • Gemara

    • t -- link to Hebrewbooks.org's text of the Daf, instead of PDF scan.
  • Mishna Torah
    • e -- link to English translation of Rambam on Chabad.org
    • h -- link to HebrewBooks.org version of Rambam
  • 1
    Thank you for this detailed post! Could you please tag it as [wiki], so that we can edit it? – unforgettableid Dec 19 '14 at 8:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .