Coder Social home page Coder Social logo

Comments (10)

stweil avatar stweil commented on September 2, 2024

This is not limited to English, but applies to more Latin based languages.

from langdata.

Shreeshrii avatar Shreeshrii commented on September 2, 2024

@stweil

  1. Do you know of any font which is similar to the image, has 1/2 in vertical format?

  2. Do other fractions (1/4, 3/4. 1/3 etc) also need to be supported?

from langdata.

stweil avatar stweil commented on September 2, 2024
  1. I saw that you did not find a matching font. Nor did I in a short search, but I have that on my list now.
  2. I'm afraid, yes, although I assume that 1/4 occurs less often than 1/2, and other fractions are even more rare. Collecting examples of such cases is also on my list of things to be done. Maybe someone has an old book with cooking recipes - I expect we can find more fractions there than in listings of house numbers.

from langdata.

amitdo avatar amitdo commented on September 2, 2024

Pango, which is what we use to render the images with text2image, supports MathML.

from langdata.

stweil avatar stweil commented on September 2, 2024

Now we only need a Tesseract which can detect formulae in images and generate hOCR with MathML for those formulae. :-)

from langdata.

amitdo avatar amitdo commented on September 2, 2024

Now we only need a Tesseract which can detect formulae in images

https://github.com/tesseract-ocr/tesseract/blob/master/ccmain/equationdetect.h

from langdata.

Shreeshrii avatar Shreeshrii commented on September 2, 2024

tesseract-ocr/tesseract#2274 (comment)

It is possible to finetune to recognize fractions. See above comment.

from langdata.

Shreeshrii avatar Shreeshrii commented on September 2, 2024

Also with a tool such as https://www.calligraphr.com/en/ it is possible to create a ttf with the desired form of characters and then use it for generating synthetic data. It will work well for Latin script based languages that do not have many ligatures or combining marks.

from langdata.

Shreeshrii avatar Shreeshrii commented on September 2, 2024

Font which has the fractions with numbers vertically above each other with a horizontal bar in between -
https://www.myfonts.com/fonts/russian-fonts/rf-rostin/

alt text

from langdata.

Shreeshrii avatar Shreeshrii commented on September 2, 2024

https://graphicdesign.stackexchange.com/questions/71097/fractions-in-indesign-typing-not-%C2%BD-alt-0189 has a short list:

A list of some Google Fonts (all free) that you can use (thanks to @RadLexus):

Coda – by Vernon Adams
Telex – by Huerta Tipografica
Arbutus Slab – by Karolina Lach
Unica One – by Eduardo Tunni
Concert One
Cherry Swash – by Nataliya Kasatkina
Economica – by Vicente Lamonaca
Special Elite – by Astigmatic

from langdata.

Related Issues (20)

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.