Gitea: RTL direction for Right to left scripts

Created on 8 Jul 2017  路  7Comments  路  Source: go-gitea/gitea

  • Gitea version (or commit ref): all
  • Git version: -
  • Operating system: -
  • Database (use [x]): -

    • [ ] PostgreSQL

    • [ ] MySQL

    • [ ] MSSQL

    • [ ] SQLite

  • Can you reproduce the bug at https://try.gitea.io: yeah, go ahead and try

    • [ ] Yes (provide example URL)

    • [ ] No

    • [ ] Not relevant

  • Log gist:

Description

Web interface does not change direction of right to left scripts for languages such as arabic and hebrew. There must be a js to detect these kind of scripts and add rtl direction into css. Writing a mixed string of latin and arabic/hebrew scripts will be shown incorrectly.
...

Screenshots

If this issue involves the Web Interface, please include a screenshot

kinfeature kinui revieweconfirmed

Most helpful comment

How it currently is:

How it currently is

How it is supposed to be:

How it has to be

This issue is every where. every html element. direction:rtl must be added to ever element which contains rtl scripts.

All 7 comments

Can you provide screenshot where does it show incorrect and describe how it should be

How it currently is:

How it currently is

How it is supposed to be:

How it has to be

This issue is every where. every html element. direction:rtl must be added to ever element which contains rtl scripts.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

This issue has been automatically closed because of inactivity. You can re-open it if needed.

It need
<p dir="auto">
for paragraph of text body that contain message or even topic.
It automatically switch text to right align and use rtl if contain right to left language, if not it keep ltr.

Hi again

I have made a Firefox add-on called Add Bidi Spport to demonstrate how my approach would work for adding bidi support to websites. Please install and use it in some websites and see the impact.

It is not made to solve the issue on all websites but to show how with a very simple approach, the issue can be efficiently resolved. Share your comments.

You may activate the addon and use it on showdownjs with the following text:

![Showdown][sd-logo]

蹖讴 two 爻賴 four


# 賳氐亘 / 蹖讴 two 爻賴 four

## LTR: One 丿賵 three 趩賴丕乇

You can download the latest release tarball directly from [releases][releases]

## Bower

    bower install showdown

## npm (server-side)

    賳賲賵賳賴 讴丿 賮丕乇爻蹖 npm install showdown 賵 丕丿丕賲賴 賲鬲賳

## CDN

You can also use one of several CDNs available: 

* rawgit CDN

        https://cdn.rawgit.com/showdownjs/showdown/<version tag>/dist/showdown.min.js

* 賮丕乇爻蹖 cdnjs

        https://cdnjs.cloudflare.com/ajax/libs/showdown/<version tag>/showdown.min.js

---------

# Syntax


## Table of contents

- [賲賯丿賲賴](#introduction)
- [Paragraphs](#paragraphs)
- [爻乇丌蹖賳丿](#headings)
    * [Atx Style](#atx-style)
    * [爻亘讴 Setext](#setext-style)
    * [Header IDs](#header-ids)
- [Blockquotes](#blockquotes)
- [Bold and Italic](#bold-and-italic)

There are some fixes needed for lists but as you can see, it works perfect.

Share your concerns with me so that I can improve my solution. This issue must be resolved once for ever.

If one share some technical information regarding the Markdown to HTML parser in the project, I might be able to make needed modifications and send a PR.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

adpande picture adpande  路  3Comments

thehowl picture thehowl  路  3Comments

jorise7 picture jorise7  路  3Comments

lunny picture lunny  路  3Comments

tuxfanou picture tuxfanou  路  3Comments