Project

General

Profile

Actions

Task #84598

closed

Epic #83796: Site Handling

SiteHandling: Implement text direction

Added by Mathias Schreiber over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2018-04-04
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Add a select box with the following values:
  • auto (guess value based on locale)
  • left to right
  • right to left

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #84581: Create a backend module to create site configurationsClosedBenni Mack2018-04-03

Actions
Actions #1

Updated by Simon Gilli over 6 years ago

  • Related to Feature #84581: Create a backend module to create site configurations added
Actions #2

Updated by Simon Gilli over 6 years ago

Current patch implements:
  • None
  • LTR
  • RTL

"auto" is not useful and very difficult to implement see my post at Slack:

today i had a look at the question of the `dir` attribute (adding the value `auto` to SiteLanguage). if you use unicode the `dir` attribute has no effect at all, the direction is taken from the unicode definition and you can set what ever you want the direction will always be correct displayed. so in most cases we do not need the direction attribute for the html tag. i also tested some mixed texts at the be editor and the displaying at the fe and everything works fine using UTF8 encoding. my conclusion is we do not need this auto detection function at all. here is an example: 'I like writing from the right to the left' will be translated 'أحب الكتابة من اليمين إلى اليسار' auto switched to rtl because of unicode. it's possible that `dir` will have an effect using an iso charset but i stopped my tests at this point. the next problem i have encountered is that you can't really map a language to a direction, the directions are mapped to scripts at the unicode definitions and scripts are mapped to countries. but as there is sometimes more than one script defined by country you can not make a valid mapping from the locale to the direction (sources: https://wikipedia.org/, http://cldr.unicode.org/index/downloads, http://wiki.selfhtml.org/wiki/HTML/Universalattribute#dir and others)

Actions #3

Updated by Mathias Schreiber over 6 years ago

  • Status changed from New to Closed

the idea sounded good on paper but is in fact not feasible.

Actions

Also available in: Atom PDF