djade007 / latext

A flutter package to efficiently display scientific LaTeX equations using the flutter_math library, without relying on WebView or JavaScript.
European Union Public License 1.2
12 stars 5 forks source link

this is not able to render hindi text properly #22

Open saurabh-jareda opened 2 weeks ago

saurabh-jareda commented 2 weeks ago

Here is the preview of the formula written in Hindi rendered using this LaTeXT package

Screenshot_2024-06-23-02-03-13-369_com jareda interest_hisab_calc-edit

but it should be rendered like this

Screenshot_2024-06-23-02-07-09-897_com jareda interest_hisab_calc-edit (this second formula is rendered using [fluttter_tex](https://pub.dev/packages/flutter_tex)) can you please add better Hindi ( or say Devnagari Script) support in your package as flutter_tex already have this, but that is very slow in rendering

djade007 commented 2 weeks ago

@saurabh-jareda please attach the latex code sample

saurabh-jareda commented 2 weeks ago

The latex code used for Your latex package is:

String formula1x = r"""$ब्याज = {{मूलधन\:राशि \times समय} \over 100}$"""

used like this

Container(
      width: double.infinity,
      padding: const EdgeInsets.all(8),
      alignment: Alignment.center,
      decoration: BoxDecoration(
          color:
              Theme.of(context).colorScheme.surfaceContainer,
          borderRadius: BorderRadius.circular(16)),
      child: LaTexT(laTeXCode: Text(formula1x))
),

and

Latex code code used for Flutter_tex is:

r"""\(ब्याज = {{मूलधन\:राशि \times समय} \over 100}\)"""