From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kHiAOmU0ImIvegAAgWs5BA (envelope-from ) for ; Fri, 04 Mar 2022 16:46:45 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id yIpIN2U0ImJQXgEAauVa8A (envelope-from ) for ; Fri, 04 Mar 2022 16:46:45 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E422BC885 for ; Fri, 4 Mar 2022 16:46:44 +0100 (CET) Received: from localhost ([::1]:46058 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nQA8i-0004Xp-2G for larch@yhetil.org; Fri, 04 Mar 2022 10:46:44 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57594) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nQ9u6-0002tk-Dj for emacs-orgmode@gnu.org; Fri, 04 Mar 2022 10:31:38 -0500 Received: from mail.ut.ac.ir ([80.66.177.10]:44178) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nQ9u3-000681-5d for emacs-orgmode@gnu.org; Fri, 04 Mar 2022 10:31:38 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.ut.ac.ir (Postfix) with ESMTP id 48D4EF0964 for ; Fri, 4 Mar 2022 19:01:14 +0330 (+0330) Received: from mail.ut.ac.ir ([127.0.0.1]) by localhost (mail.ut.ac.ir [127.0.0.1]) (amavisd-new, port 10024) with LMTP id UR8L9qIdKrWv; Fri, 4 Mar 2022 19:01:12 +0330 (+0330) Received: from gnu.localdomain (unknown [2.147.175.94]) by mail.ut.ac.ir (Postfix) with ESMTPSA id 048C4F094D; Fri, 4 Mar 2022 19:01:11 +0330 (+0330) From: shosseinib To: emacs-orgmode@gnu.org Subject: [PATCH] lisp/ox.el: Add Persian/Farsi to org-export Date: Fri, 4 Mar 2022 19:00:34 +0330 Message-Id: <20220304153034.374103-1-shosseinib@ut.ac.ir> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=80.66.177.10; envelope-from=shosseinib@ut.ac.ir; helo=mail.ut.ac.ir X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: shosseinib Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1646408805; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=hqaDmMN+zODqkz7dzeN2rO6tQk7s2VsxTU9Hei2FRgk=; b=ueX/XSs0bjkFasJ2KVUESUOVUbij0rtZU9V6gnMFWwuIcHfNiXGuGD2xx8VzxS1QnPrVcr ecrQ4Mpt2m7exMzaAEmpjqr6aEG4/AIy11vYcQX6h26Plyy3d1f2QDWmKViQG36ZsdAAsf TjrQAwP7MozuXS8KoPCeMBO+7VOZtpIEcuyM4dMjNsPI+T9aK8YqOgAInUOp07VRCBI66+ cHClbfX9NaT2PA3+wUmcr+YySwXqCCyg5O5UiSVF/y9aD3p6RqhN/dU4Z6/gqn43Yjd7WA eqS36hID42Z7u9PPzRc6Q7fEjGyLy7l/gYht7ASz/hEy+F0m4L032PN63jYt2w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646408805; a=rsa-sha256; cv=none; b=NB2ax+uOCUBdgPqaH4L7MIcVOk7CnFx2YluXctwGvf7kxTdYlIiWPpc0Q7LdC0p0+6k0xb 1qY32+ru4c6HdnwrIa95o2pmMOPA1n/43e9BDeLuW/BwbXuP+uI1csePoiBk71/FnyO1XE pGpmFKmBf+CsuFBECLaGhHMB6z44qVCdM8GIF3BmETZr35hD63gxuZUn9rpedUDjg/y4FW AOfv/bqHmgWhwTAKyyYXHES1g078p64sj8enIu/mVzu1SIy2iu9Z5RbtlV8+JMRyT5fwnj M8588Xge7/72YK9iA6svkPvKAwctZjUlEyk5hgMgu0Lc+zayehYJS5rOjZTWXw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.06 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: E422BC885 X-Spam-Score: -2.06 X-Migadu-Scanner: scn0.migadu.com X-TUID: 3Q9w9mQlx44O * Add Persian/Farsi translation to the org-export-dictionary variable at lisp/ox.el. - Persian/Farsi is a native language to ~ 110 million speakers around the world (mostly in Iran, Afghanistan, Tajiskistan, Uzbekistan, and Iraq). - "fa" abbreviation stands for "farsi" according to [[ISO 639-1][https://en.wikipedia.org/wiki/ISO_639-1]]. --- lisp/ox.el | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/lisp/ox.el b/lisp/ox.el index 6b68fc2da..5669d44bb 100644 --- a/lisp/ox.el +++ b/lisp/ox.el @@ -5513,6 +5513,18 @@ transcoding it." (secondary-opening :utf-8 "“" :html "“" :latex "``" :texinfo "``") (secondary-closing :utf-8 "”" :html "”" :latex "''" :texinfo "''") (apostrophe :utf-8 "’" :html "’")) + ("fa" + (primary-opening + :utf-8 "«" :html "«" :latex "\\guillemotleft{}" + :texinfo "@guillemetleft{}") + (primary-closing + :utf-8 "»" :html "»" :latex "\\guillemotright{}" + :texinfo "@guillemetright{}") + (secondary-opening :utf-8 "‹" :html "‹" :latex "\\guilsinglleft{}" + :texinfo "@guilsinglleft{}") + (secondary-closing :utf-8 "›" :html "›" :latex "\\guilsinglright{}" + :texinfo "@guilsinglright{}") + (apostrophe :utf-8 "’" :html "’")) ("fr" (primary-opening :utf-8 "« " :html "« " :latex "\\og " @@ -5834,6 +5846,7 @@ them." ("eo" :html "Aŭtoro") ("es" :default "Autor") ("et" :default "Autor") + ("fa" :default "نویسنده") ("fi" :html "Tekijä") ("fr" :default "Auteur") ("hu" :default "Szerzõ") @@ -5859,6 +5872,7 @@ them." ("cs" :default "Pokračování z předchozí strany") ("de" :default "Fortsetzung von vorheriger Seite") ("es" :html "Continúa de la página anterior" :ascii "Continua de la pagina anterior" :default "Continúa de la página anterior") + ("fa" :default "ادامه از صفحهٔ قبل") ("fr" :default "Suite de la page précédente") ("it" :default "Continua da pagina precedente") ("ja" :default "前ページからの続き") @@ -5876,6 +5890,7 @@ them." ("cs" :default "Pokračuje na další stránce") ("de" :default "Fortsetzung nächste Seite") ("es" :html "Continúa en la siguiente página" :ascii "Continua en la siguiente pagina" :default "Continúa en la siguiente página") + ("fa" :default "ادامه در صفحهٔ بعد") ("fr" :default "Suite page suivante") ("it" :default "Continua alla pagina successiva") ("ja" :default "次ページに続く") @@ -5890,6 +5905,7 @@ them." ("tr" :default "Devamı sonraki sayfada")) ("Created" ("cs" :default "Vytvořeno") + ("fa" :default "ساخته شده") ("nl" :default "Gemaakt op") ;; must be followed by a date or date+time ("pt_BR" :default "Criado em") ("ro" :default "Creat") @@ -5904,6 +5920,7 @@ them." ("eo" :default "Dato") ("es" :default "Fecha") ("et" :html "Kuupäev" :utf-8 "Kuupäev") + ("fa" :default "تاریخ") ("fi" :html "Päivämäärä") ("hu" :html "Dátum") ("is" :default "Dagsetning") @@ -5930,6 +5947,7 @@ them." ("de" :default "Gleichung") ("es" :ascii "Ecuacion" :html "Ecuación" :default "Ecuación") ("et" :html "Võrrand" :utf-8 "Võrrand") + ("fa" :default "معادله") ("fr" :ascii "Equation" :default "Équation") ("is" :default "Jafna") ("ja" :default "方程式") @@ -5952,6 +5970,7 @@ them." ("de" :default "Abbildung") ("es" :default "Figura") ("et" :default "Joonis") + ("fa" :default "شکل") ("is" :default "Mynd") ("it" :default "Figura") ("ja" :default "図" :html "図") @@ -5972,6 +5991,7 @@ them." ("de" :default "Abbildung %d:") ("es" :default "Figura %d:") ("et" :default "Joonis %d:") + ("fa" :default "شکل %d:") ("fr" :default "Figure %d :" :html "Figure %d :") ("is" :default "Mynd %d") ("it" :default "Figura %d:") @@ -5996,6 +6016,7 @@ them." ("eo" :default "Piednotoj") ("es" :ascii "Notas al pie de pagina" :html "Notas al pie de página" :default "Notas al pie de página") ("et" :html "Allmärkused" :utf-8 "Allmärkused") + ("fa" :default "پانوشت‌ها") ("fi" :default "Alaviitteet") ("fr" :default "Notes de bas de page") ("hu" :html "Lábjegyzet") @@ -6024,6 +6045,7 @@ them." ("de" :default "Programmauflistungsverzeichnis") ("es" :ascii "Indice de Listados de programas" :html "Índice de Listados de programas" :default "Índice de Listados de programas") ("et" :default "Loendite nimekiri") + ("fa" :default "فهرست برنامه‌ریزی‌ها") ("fr" :default "Liste des programmes") ("ja" :default "ソースコード目次") ("nl" :default "Lijst van programma's") @@ -6042,6 +6064,7 @@ them." ("de" :default "Tabellenverzeichnis") ("es" :ascii "Indice de tablas" :html "Índice de tablas" :default "Índice de tablas") ("et" :default "Tabelite nimekiri") + ("fa" :default "فهرست جدول‌ها") ("fr" :default "Liste des tableaux") ("is" :default "Töfluskrá" :html "Töfluskrá") ("it" :default "Indice delle tabelle") @@ -6065,6 +6088,7 @@ them." ("de" :default "Programmlisting") ("es" :default "Listado de programa") ("et" :default "Loend") + ("fa" :default "برنامه‌ریزی") ("fr" :default "Programme" :html "Programme") ("it" :default "Listato") ("ja" :default "ソースコード") @@ -6085,6 +6109,7 @@ them." ("de" :default "Programmlisting %d") ("es" :default "Listado de programa %d") ("et" :default "Loend %d") + ("fa" :default "برنامه‌ریزی %d:") ("fr" :default "Programme %d :" :html "Programme %d :") ("it" :default "Listato %d :") ("ja" :default "ソースコード%d:") @@ -6103,6 +6128,7 @@ them." ("cs" :default "Reference") ("de" :default "Quellen") ("es" :default "Referencias") + ("fa" :default "منابع") ("fr" :ascii "References" :default "Références") ("it" :default "Riferimenti") ("nl" :default "Bronverwijzingen") @@ -6112,6 +6138,7 @@ them." ("tr" :default "Referanslar")) ("See figure %s" ("cs" :default "Viz obrázek %s") + ("fa" :default "نمایش شکل %s") ("fr" :default "cf. figure %s" :html "cf. figure %s" :latex "cf.~figure~%s") ("it" :default "Vedi figura %s") @@ -6123,6 +6150,7 @@ them." ("tr" :default "bkz. şekil %s")) ("See listing %s" ("cs" :default "Viz program %s") + ("fa" :default "نمایش برنامه‌ریزی %s") ("fr" :default "cf. programme %s" :html "cf. programme %s" :latex "cf.~programme~%s") ("nl" :default "Zie programma %s" @@ -6138,6 +6166,7 @@ them." ("de" :default "siehe Abschnitt %s") ("es" :ascii "Vea seccion %s" :html "Vea sección %s" :default "Vea sección %s") ("et" :html "Vaata peatükki %s" :utf-8 "Vaata peatükki %s") + ("fa" :default "نمایش بخش %s") ("fr" :default "cf. section %s") ("it" :default "Vedi sezione %s") ("ja" :default "セクション %s を参照") @@ -6153,6 +6182,7 @@ them." ("zh-CN" :html "参见第%s节" :utf-8 "参见第%s节")) ("See table %s" ("cs" :default "Viz tabulka %s") + ("fa" :default "نمایش جدول %s") ("fr" :default "cf. tableau %s" :html "cf. tableau %s" :latex "cf.~tableau~%s") ("it" :default "Vedi tabella %s") @@ -6168,6 +6198,7 @@ them." ("de" :default "Tabelle") ("es" :default "Tabla") ("et" :default "Tabel") + ("fa" :default "جدول") ("fr" :default "Tableau") ("is" :default "Tafla") ("it" :default "Tabella") @@ -6186,6 +6217,7 @@ them." ("de" :default "Tabelle %d") ("es" :default "Tabla %d") ("et" :default "Tabel %d") + ("fa" :default "جدول %d") ("fr" :default "Tableau %d :") ("is" :default "Tafla %d") ("it" :default "Tabella %d:") @@ -6211,6 +6243,7 @@ them." ("eo" :default "Enhavo") ("es" :ascii "Indice" :html "Índice" :default "Índice") ("et" :default "Sisukord") + ("fa" :default "فهرست") ("fi" :html "Sisällysluettelo") ("fr" :ascii "Sommaire" :default "Table des matières") ("hu" :html "Tartalomjegyzék") @@ -6238,6 +6271,7 @@ them." ("de" :default "Unbekannter Verweis") ("es" :default "Referencia desconocida") ("et" :default "Tundmatu viide") + ("fa" :default "منبع ناشناس") ("fr" :ascii "Destination inconnue" :default "Référence inconnue") ("it" :default "Riferimento sconosciuto") ("ja" :default "不明な参照先") -- 2.35.1