1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages.bn/common/2to3.md
K.B.Dharun Krishna 8538a31451
pages/*: add standard translation and links (#11331)
* pages/*: add standard translation and links

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* fix1: false positives; standardize Bengali, Hindi, Nepali periods

* fix: periods in recently added Bengali pages

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* fix: false positives in modified files

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* cleanup: update to native period in Bengali l10n

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

---------

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-11-06 14:02:31 +05:30

2 KiB

2to3

āĻ¸ā§āĻŦāϝāĻŧāĻ‚āĻ•ā§āϰāĻŋāϝāĻŧ āĻĒāĻžāχāĻĨāύ ⧍ āĻĨ⧇āϕ⧇ ā§Š āϕ⧋āĻĄ āϰ⧂āĻĒāĻžāĻ¨ā§āϤāϰāĨ¤ āφāϰāĻ“ āϤāĻĨā§āϝ āϜāĻžāύāϤ⧇: https://docs.python.org/3/library/2to3.html|

  • āĻĒāϰāĻŋāĻŦāĻ°ā§āϤāύāϗ⧁āϞāĻŋ āĻĒā§āϰāĻĻāĻ°ā§āĻļāύ āĻ•āϰ⧁āύ āϝāĻž āĻ•āϰāĻž āĻšāĻŦ⧇ āϤāĻž āύāĻž āĻ•āϰ⧇ (āĻĄā§āϰāĻžāχ-āϰāĻžāύ):

2to3 {{āĻĢāĻžāχāϞ⧇āϰ/āĻĒāĻĨ.py}}

  • āĻāĻ•āϟāĻŋ āĻĒāĻžāχāĻĨāύ 2 āĻĢāĻžāχāϞāϕ⧇ āĻĒāĻžāχāĻĨāύ 3 āĻ āϰ⧂āĻĒāĻžāĻ¨ā§āϤāϰ āĻ•āϰ⧁āύ:

2to3 --write {{āĻĢāĻžāχāϞ⧇āϰ/āĻĒāĻĨ.py}}

  • āύāĻŋāĻ°ā§āĻĻāĻŋāĻˇā§āϟ āĻĒāĻžāχāĻĨāύ 2 āĻ­āĻžāώāĻž āĻŦ⧈āĻļāĻŋāĻˇā§āĻŸā§āϝāϗ⧁āϞāĻŋ āĻĒāĻžāχāĻĨāύ 3 āĻ āϰ⧂āĻĒāĻžāĻ¨ā§āϤāϰ āĻ•āϰ⧁āύ:

2to3 --write {{āĻĢāĻžāχāϞ⧇āϰ/āĻĒāĻĨ.py}} --fix={{raw_input}} --fix={{print}}

  • āύāĻŋāĻ°ā§āĻĻāĻŋāĻˇā§āϟ āύāĻž āĻ•āϰ⧇ āϏāĻŽāĻ¸ā§āϤ āĻĒāĻžāχāĻĨāύ 2 āĻ­āĻžāώāĻž āĻŦ⧈āĻļāĻŋāĻˇā§āĻŸā§āϝāϗ⧁āϞāĻŋ āĻĒāĻžāχāĻĨāύ 3 āĻ āϰ⧂āĻĒāĻžāĻ¨ā§āϤāϰ āĻ•āϰ⧁āύ:

2to3 --write {{āĻĢāĻžāχāϞ⧇āϰ/āĻĒāĻĨ.py}} --nofix={{has_key}} --nofix={{isinstance}}

  • āĻĒāĻžāχāĻĨāύ 2 āĻĨ⧇āϕ⧇ āĻĒāĻžāχāĻĨāύ 3 āĻ āϰ⧂āĻĒāĻžāĻ¨ā§āϤāϰ āĻ•āϰāĻž āϝāĻžāĻŦāϤ āϏāĻŽāĻ¸ā§āϤ āωāĻĒāϞāĻŦā§āϧ āĻ­āĻžāώāĻž āĻŦ⧈āĻļāĻŋāĻˇā§āĻŸā§āϝ⧇āϰ āϤāĻžāϞāĻŋāĻ•āĻž āĻĒā§āϰāĻĻāĻ°ā§āĻļāύ āĻ•āϰ⧁āύ:

2to3 --list-fixes

  • āĻāĻ•āϟāĻŋ āĻĄāĻŋāϰ⧇āĻ•ā§āϟāϰāĻŋāϤ⧇ āϏāĻŽāĻ¸ā§āϤ āĻĒāĻžāχāĻĨāύ 2 āĻĢāĻžāχāϞāϗ⧁āϞāĻŋ āĻĒāĻžāχāĻĨāύ 3 āĻ āϰ⧂āĻĒāĻžāĻ¨ā§āϤāϰ āĻ•āϰ⧁āύ:

2to3 --output-dir={{āĻĒāĻžāĻĨ/āϟ⧁/āĻĒāĻžāχāĻĨāύ3_āĻĄāĻŋāϰ⧇āĻ•ā§āϟāϰāĻŋ}} --write-unchanged-files --nobackups {{āĻĒāĻžāĻĨ/āϟ⧁/āĻĒāĻžāχāĻĨāύ2_āĻĄāĻŋāϰ⧇āĻ•ā§āϟāϰāĻŋ}}

  • āĻŽāĻžāĻ˛ā§āϟāĻŋāĻĒāϞ āĻĨā§āϰ⧇āĻĄ āϏāĻš ⧍āĻŸā§ā§Š āϚāĻžāϞāĻžāύ:

2to3 --processes={{4}} --output-dir={{āĻĒāĻžāĻĨ/āϟ⧁/āĻĒāĻžāχāĻĨāύ3_āĻĄāĻŋāϰ⧇āĻ•ā§āϟāϰāĻŋ}} --write --nobackups --no-diff {{āĻĒāĻžāĻĨ/āϟ⧁/āĻĒāĻžāχāĻĨāύ2_āĻĄāĻŋāϰ⧇āĻ•ā§āϟāϰāĻŋ}}