GithubHelp home page GithubHelp logo

dualjustify's People

Contributors

freespeech avatar taomin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

dm04806 danny0838

dualjustify's Issues

一些問題及修正

您好,很高興有人實做縱橫對齊的功能,在下建了一個分枝並做了些修改,供您參考。

以下是過程中發現及修正的問題:

  • README 描述的 css 及 js 引用網域 http://newspeak.cc:3000 不能使用
  • 改為基於 jQuery 系統(主要原因是在下不懂 YUI XD)
  • 增加更多可調整的選項
  • 內建調整視窗大小時自動重新渲染,加上短暫的延時以提升效能,簡化主控程式碼
  • 演示檔案預設加上偵錯標示
  • 改良漢字偵測,如之類與漢字同寬的字元會視做漢字處理
  • 改良字寬計算,精確至兩位小數
  • 修正 dualjustify 元素中含有 iframe 等元素時發生錯誤的問題
  • 修正 dualjustify 元素字級、字體、粗細程度不一時的字寬計算錯誤問題

其他已知的待修正問題:

  • dualjustify 元素中有不同字級(font-size)、字體(font-family)、粗體(font-weight)時,字寬計算不正常
  • 無法正常處理 unicode >= U+10000 的雙字元漢字(如 U+20000)
  • 效能優化(應可直接修改子層元素,不需先計算 innerHTML 再全部塞進 dualjustify )

英文符號混雜時排版錯誤,及 <a> 結束判斷錯誤

HTML 如下:

<article class="article">
<section class="content"><p>Wordpress 預設的這些版面說有多不配程式就有多不配,不付錢的話能客製程度又低(事實上我覺得非常爛,很後悔幹嘛用),但能直接上傳圖片什麼的還是有其方便處。這陣子一直在想要不要整個換 Octopress 然後放 github,不但簡單清爽而且能用版本管理系統來寫 blog 實在是很讚的一件事情。另一件麻煩事是雖然大家很推崇用 markdown 來寫,但我最常用的其實是 org-mode,從 org-mode 是可以輸出 markdown 沒錯啦,但繞那麼遠是要幹嘛… markdown 跟 org-mode 還差蠻多的,寫習慣 org-mode 以後換到 markdown 都還要去查語法,例如連結 org-mode 就是<code>[[link][description]]</code>然後 markdown 就是<code>[description](link)</code>或是<code>[description][footnote id]</code>,這種小地方真的蠻討厭的。然後譬如強調字體 org-mode 是<code>*bold*</code>, <code>/italic/</code>, <code>_underlined_</code>, <code>=code=</code>還有<code>~verbatim~</code>這部份 markdown 就完全不一樣。</p>
<p>Evernote 就是蠻好的想法,配上 <a href="http://postach.io/" title="postach.io">postach.io</a> 當 blog 就不錯,但真的不適合我。</p>
</section>
</article>

截圖如下:
dualjustify

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.