Register

Text Reader

Discuss anything related to calculators. For specific help on certain games/programs check the Released Projects subforum.
Member
Posts: 36
Joined: Tue Apr 17, 2012 9:22 pm

Text Reader

Postby xtrm0 » Sat Apr 21, 2012 7:24 pm

Hi, is there any text reader for the fx9860 that supports Portuguese/French accents?
For instance: â ã á (...)

If so where can I download it?
If not, is there a way of converting files with those accents to files without those accents?

Senior Member
Posts: 369
Joined: Tue Jan 03, 2012 11:24 pm
Calculators: Casio Afx 1.0, Casio fx-9860GII SD, Casio Classpad 330, Casio fx-CG20, Casio Classpad fx-CP400

Postby helder7 » Sun Apr 22, 2012 10:42 am

there are 4 TXT readers for fx9860, but all do not allow accents

This txt reader is open source, and is the better txt reader for calc -> http://www.casio-scene.com/downloads.php?do=file&id=119

about a way to converting files with those accents to files without accents, some time ago i did a php tool to remove accents, I'll try to find it and upload it to the server, I think I have it on a pen
SiO2 + CaCO3 ----------> CaSiO3 + CO2

Member
Posts: 36
Joined: Tue Apr 17, 2012 9:22 pm

Postby xtrm0 » Sun Apr 22, 2012 2:17 pm

Thanks for the help. I coded an accent remover in c++.
In case anyone wants to download it:
(I'm unable to upload it, so you'll have to compile it)

Source-Code:
Code: Select all
#include <iostream>
#include <fstream>
#include <string>
using namespace std;

int main() {
   ifstream fin("in.txt");
   ofstream fout("out.txt");
   string in;
   while (getline(fin, in, '\n')) {
      for (unsigned i=0; i<in.size(); i++) {
         if(in[i]=='á' || in[i]=='à' || in[i]=='â' || in[i]=='ã') {
            in[i]='a';
         }
         if(in[i]=='é' || in[i]=='è' || in[i]=='ê') {
            in[i]='e';
         }
         if(in[i]=='í' || in[i]=='ì' || in[i]=='î') {
            in[i]='i';
         }
         if(in[i]=='ó' || in[i]=='ò' || in[i]=='ô' || in[i]=='õ') {
            in[i]='o';
         }
         if(in[i]=='ú' || in[i]=='ù' || in[i]=='û') {
            in[i]='u';
         }
         if(in[i]=='ç') {
            in[i]='c';
         }
         if(in[i]=='   ') {
            in[i]='\n';
         }
         if(in[i]=='Á' || in[i]=='À' || in[i]=='Â' || in[i]=='Ã') {
            in[i]='A';
         }
         if(in[i]=='É' || in[i]=='È' || in[i]=='Ê') {
            in[i]='E';
         }
         if(in[i]=='Í' || in[i]=='Ì' || in[i]=='Î') {
            in[i]='I';
         }
         if(in[i]=='Ó' || in[i]=='Ò' || in[i]=='Ô' || in[i]=='Õ') {
            in[i]='O';
         }
         if(in[i]=='Ú' || in[i]=='Ù' || in[i]=='Û') {
            in[i]='U';
         }
         if(in[i]=='Ç') {
            in[i]='C';
         }
      }
      fout << in << endl;
   }
}


Regz,
Xtrm0

Senior Member
Posts: 369
Joined: Tue Jan 03, 2012 11:24 pm
Calculators: Casio Afx 1.0, Casio fx-9860GII SD, Casio Classpad 330, Casio fx-CG20, Casio Classpad fx-CP400

Postby helder7 » Sun Apr 22, 2012 2:42 pm

I found my system to remove accents in php!

now avaliable -> http://www.casio-scene.com/tools/accent-remover/index.php

Usage:
Paste text in textarea and press F1, enjoy!
SiO2 + CaCO3 ----------> CaSiO3 + CO2

Member
Posts: 36
Joined: Tue Apr 17, 2012 9:22 pm

Postby xtrm0 » Sun Apr 22, 2012 2:56 pm

Nice design. But it also remove +, and other symbols suported in ascii.

Senior Member
Posts: 369
Joined: Tue Jan 03, 2012 11:24 pm
Calculators: Casio Afx 1.0, Casio fx-9860GII SD, Casio Classpad 330, Casio fx-CG20, Casio Classpad fx-CP400

Postby helder7 » Sun Apr 22, 2012 3:03 pm

humm, fixed, this bug is caused by

urldecode($text)
SiO2 + CaCO3 ----------> CaSiO3 + CO2

Member
Posts: 36
Joined: Tue Apr 17, 2012 9:22 pm

Postby xtrm0 » Sun Apr 22, 2012 3:24 pm

Fixe. Tnx.

Junior Member
Posts: 5
Joined: Thu May 17, 2012 5:19 pm

Postby piggypaul » Thu May 17, 2012 10:34 pm

Is there a calculator app that has a search function and is not limited by file size (or at least bigger than 40kb)?

Junior Member
Posts: 2
Joined: Sun Jul 08, 2012 4:10 pm

Postby d3ckart » Sun Jul 08, 2012 4:13 pm

I have a problem with the text editor, I have succesfully install it on my fx-9860gii but when i try to use the program i get no response and i have to do a reset on my calculator. Any Ideas ? OS version is 02.02.0201 Thanks in advance. Im trying few weeks now but with no luck

Senior Member
Posts: 369
Joined: Tue Jan 03, 2012 11:24 pm
Calculators: Casio Afx 1.0, Casio fx-9860GII SD, Casio Classpad 330, Casio fx-CG20, Casio Classpad fx-CP400

Postby helder7 » Sun Jul 08, 2012 4:29 pm

i think you have a power graphic 2 model... your calc have the text "Usb power graphic 2" at bottom of the screen (like this: http://img687.imageshack.us/img687/534/fx9860g3.png) ?

thy noteview add-in: http://www.casio-scene.com/downloads.php?do=file&id=300
SiO2 + CaCO3 ----------> CaSiO3 + CO2

Next

Return to General

Who is online

Users browsing this forum: No registered users and 149 guests