Coder Social home page Coder Social logo

convert-number-coptic's Introduction

Why Convert::Number::Coptic?

  Because it wasn't there :)  The goal for this package is to provide
  numeral and date conversion services in pure Perl under Coptic
  conventions.

What This Package Can Do

  At this point numeral system conversion between Western (Arabic, base 10)
  and Coptic.  Coptic numerals sequences must be in UTF-8.  The package is
  known to work on Perl 5.6.1 and has not been tested on other versions of
  Perl by the author. 

  Coptic numerals can be formatted in two ways.  The standard convention
  is to use only underlines from 10^3 and onward.  A lesser used convention
  accumulates only overlines.  This package uses the standard convention.

  Unicode does not define which diacritical symbols should be used for
  composing Coptic numerals.  The solution here is to use U+0304 for single
  overline, U+0331 for single underline and U+0347 for double underline.

  Since Unicode lacks diacritical symbols to build up numbers indefinitely
  (can't blame Unicode here) a complication arises for numbers of 1 billion
  or larger.  Since there is no triple or quadruple, etc, underline non-spacing
  diacritical marks, this package simply appends extra diacritical symbols.
  For example:

  10^5 => (U+03C1)(U+0331)
  10^6 => (U+03B1)(U+0347)
  10^7 => (U+03B9)(U+0347)
  10^8 => (U+03C1)(U+0347)
  10^9 => (U+03B1)(U+0347)(U+0331)
  10^10 => (U+03B9)(U+0347)(U+0331)
  10^11 => (U+03C1)(U+0347)(U+0331)
  10^12 => (U+03B1)(U+0347)(U+0347)
    :   :      :       :       :

  The shared Greek-Coptic range of Unicode is used by this package.  This
  will be update when Unicode is revised to better support Coptic.

convert-number-coptic's People

Watchers

 avatar  avatar  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.