summaryrefslogblamecommitdiffstats
path: root/2021/talks/bidi.md
blob: 449a9430c9f2189fdeadda7074f055ea3f8b4d78 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                                





                                                                                 
                                                

                                                                                
                                  
 

                                                        

                                                               


                                                                              




                                                                                         








                                                                                         
                                                                         
                                                                                
                       








                                                  
                                                  
                                      

                                                
                                                  
                                   



                                                 

                                                        




                                                
    

                             
                                                                    

                                                                            

    
    


                                                        
                                              
    


                                                                               
    

                                                                      
    


                                                               
    
                                                          
    

                                         
                                                         
                                                        

                                            
                                                                                    
 
             
 




                                                                             
                                                                              
                                                                 

                                                                           














                                                                                               
          



                                                     
 
                                                          
                                                          
[[!meta title="Perso-Arabic Input Methods And BIDI Aware Apps"]]
[[!meta copyright="Copyright © 2021 Mohsen BANAN"]]
[[!inline pages="internal(2021/info/bidi-nav)" raw="yes"]]

<!-- You can manually edit this file to update the abstract, add links, etc. --->


# Perso-Arabic Input Methods And BIDI Aware Apps
Mohsen BANAN -- <mailto:emacs@mohsen.1.banan.byname.net> --  محسن بنان  
pronouns: he/him, pronunciation: MO-HH-SS-EN  
<http://mohsen.1.banan.byname.net>

Live Q&A: <https://bbb.emacsverse.org/b/ban-tdo-w2j-ov2>

[[!inline pages="internal(2021/info/bidi-schedule)" raw="yes"]]

## About The Video

The video is a screen capture of a [reveal](https://revealjs.com) presentation
prepared with Beamer XeLaTeX and [HaVeA](http://hevea.inria.fr). So, the
[original reveal
presentation](http://web.by-star.net/lcnt/PLPC/180063/current/pres/PLPC-180063-pres.html)
allows you to click on links that you see in the video and also navigate through
the slide. In html, it is also availble as a [Presenation-As-Article
format](http://web.by-star.net/lcnt/PLPC/180063/current/presArt/PLPC-180063-presArt.html)
which includes complete text of the audio. [The traditional beamer slides](
http://web.by-star.net/lcnt/PLPC/180063/current/pres/PLPC-180063-pres.pdf) are
also available. The Access Page for
[PLPC-180063](http://www.by-star.net/PLPC/180063) points to all available forms
and formats.

## About This Presentation

Emacs is a multilingual user environment. A true multilingual editor must
support bidirectionality and shaping of characters. Perso-Arabic scripts require
both of these features.

Starting with Emacs 24, full native bidi
(bidirectional) support became available.  For
many years prior to that Unicode support was
available and by around year 2000, reasonable
open-source shaping libraries were also available.

With these in place at around 2012, I developed
two Persian input methods for emacs. These input
methods or variations of them can also be used for
Arabic and other Perso-Arabic scripts.

With all of these in place, Emacs has now become
the ne plus ultra Libre-Halaal and Convivial usage
environment for Perso-Arabic users.

Since emacs comes loaded with everything (Gnus
for email, Bbdb for address books, XeLaTeX modes
for typesetting, org-mode for organization, spell
checkers, completion systems, calendar, etc.), all basic
computing and communication needs of Perso-Arabic
users can be addressed in one place and
cohesively.

In this talk I will demonstrate what a wonderful
environment that can be.
    
My talk will be in two parts.
    
In Part 1, I cover Persian input methods. With an emphasis on "Banan
Multi-Character (Reverse) Transliteration Persian Input Method". The
software is part of base emacs distribution. Full documentation is available
at: 

    
           Persian Input Methods
           For Emacs And More Broadly Speaking
           شیوه‌هایِ درج به فارسی‌
<http://mohsen.1.banan.byname.net/PLPC/120036>
    
In Part 2, I'll demonstrate that Emacs is far more than an editor. Emacs can be
a complete Perso-Arabic usage environment. I will also cover the ramifications
of bidi on existing emacs applications, including:
    
-   Spell Checking, Dictionaries And Completion Frameworks:
    - Existing emacs facilities can be extended to cover Perso-Arabic.
    
-   Gnus:
    -   Perso-Arabic rich email sending in HTML.
    -   Ramifications of bidi on from:, to: and subject: lines.
    
-   Bbdb: Ramifications of bidi on display and completion.
    
-   Calendar:
    -   Ramifications of bidi on display.
    -   Use of Persian text for Persian (solar) calendar.
    -   Use of Arabic text for Muslim (lunar)  calendar.
    
-   AUCTeX: Persian typesetting with XeLaTeX
    -   Option of having right-to-left  Perso-Arabic aliases for all latex commands.

# References:

## Persian Input Methods:
<http://mohsen.1.banan.byname.net/PLPC/120036>
<http://www.persoarabic.org/PLPC/120036> -- Persian Input Methods Access Page
<http://www.persoarabic.org> -- Various Perso-Arabic resources
<http://www.freeprotocols.org/Repub/fpf-isiri-6219> -- Re-Publication Of 
          Persian Information Interchange and Display Mechanism, using Unicode
<https://github.com/bx-blee/persian-input-method> -- Git repo for
          persian.el -- Quail package for inputting Persian/Farsi keyboards
      
## BIDI:
<http://www.unicode.org/reports/tr9/> -- Annex #9 of the Unicode standard
<https://www.gnu.org/software/emacs/manual/html_node/elisp/Bidirectional-Display.html>   
          Emacs Bidirectional Display   
<http://www.persoarabic.org/answers>   
          Paragraph Directionality Results Into Serious Communication Problems 

## Blee and Persian-Blee:
<https://github.com/bx-blee/env2> -- Very messy work-in-progress git repo for:  
          Blee: By* Libre-Halaal Emacs Environment   
<http://www.by-star.net> -- A Moral Alternative To The Proprietary American Digital Ecosystem  
<http://mohsen.1.banan.byname.net/PLPC/120033> --   
            Nature of Polyexistentials:   
            Basis for Abolishment of The Western Intellectual Property Rights Regime   
<http://mohsen.1.banan.byname.net/PLPC/120039> -- Defining The Libre-Halaal Label  
          
## Mohsen BANAN -- محسن بنان:
<http://mohsen.1.banan.byname.net/> -- Globish  
<http://mohsen.1.banan.byname.net/persian> -- Farsi  
<http://mohsen.1.banan.byname.net/french> -- French  

[[!inline pages="internal(2021/captions/bidi)" raw="yes"]]
[[!inline pages="internal(2021/info/bidi-nav)" raw="yes"]]