Giter Club home page Giter Club logo

rtl-yoursite's Introduction

Arabicize Your Site

Set of steps to guide you through creating an Arabic version of your LTR website. Should work mostly for other RTL languages as well.

Duplicate Asset Files (Optional)

  • Duplicate layout/template files (e.g. template.html, index.html, etc.)
  • Duplicate and rename CSS files (e.g. styles-ar.css, bootstrap-ar.css, cover-ar.css, etc.)
  • Duplicate images and other assets.

Images & Backgrounds

  • Replace English text in Logotype images with Arabic text.
  • Replace English text in photos and other pictures with Arabic text.
  • Flip direction of asymmetric text-free decorative images from left to right and vice versa.

CSS Code

  • direction: rtl <=> direction: ltr
  • left <=> right
  • letter-spacing: 0 โ€“ Arabic text has no letter spacing.
  • en <=> ar (e.g Look for: -en, en-, /en, en/, "en, en", en, etc.)
  • margin: 1 2 3 4 => margin: 1 4 3 2
  • padding: 1 2 3 4 => padding: 1 4 3 2
  • For Bootstrap 4 and later: ml <=> mr
  • For Bootstrap 4 and later: pl <=> pr
  • Replace the font-family font-stack values with appropriate Arabic ones (e.g. 'Amiri', 'Droid Arabic Naskh', 'Arial', etc.)

HTML Code

  • left <=> right
  • ltr <=> rtl
  • en <=> ar (e.g Search for: -en, en-, /en, en/, "en, en", en, etc.)
  • Validate HTML element attribute values: (e.g. title, alt, src, href, placeholder, value, etc.)
  • Translate English text content to Arabic.

Test & Fix

  • Quality-check font sizes of headings and paragraphs.
  • Check if font-weight still works for all newly used Arabic font families.
  • Check misspellings.
  • Use better fonts if necessary.
  • Adjust spacing if necessary (i.e. paddings, margins, positions, etc.)
  • Debug JavaScript plugins and scripts that stopped working because of renaming and style direction change.

[] Notice that the sign <=> goes both ways. [] Making left = right, and right = left 1. Replace left with temp. 2. Then replace right with left. 3. Finally replace temp with right. Apply same concept to other keywords.

rtl-yoursite's People

Contributors

lionbytes avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.