#178 closed task (fixed)
Experimental ASpell prompts for word correction once, then allows correction every two mispellings
Reported by: | Alfredo Fernández Díaz | Owned by: | |
---|---|---|---|
Priority: | Feedback pending | Milestone: | |
Component: | *none | Version: | |
Severity: | medium | Keywords: | |
Cc: | mrwarper@… |
Description
As per the closure of #177, I installed the latest experimental ASpell.
When checking a file, the program should show a line containing some 'misspelled' word, present a multiple choice menu to deal with it, and repeat till EOF is reached.
The program does as it should the first time; from the second misspelled word on, it shows the menu but does not allow input, then proceeds to the next misspelled word, effectively letting users to correct every other misspelling.
Sample output below: note the first prompt had some input (right after "?"), then none is taken for the second prompt, and the third prompt is presented directly.
Archive *Filename*: PMPrintf254.zip
1) File name 6) Film
2) File-name 7) Flange
3) Forename 8) Flume
4) Flame 9) Flannel
5) Flamer 0) Fulsome
i) Ignorar I) Ignorar todos
r) Sustituir R) Sustituir todos
a) Añadir l) Añadir minúsculas
b) Abortar x) Salir
? I
Archive Filename: *PMPrintf*254.zip
1) Imprint 4) Imprinter
2) Imprints 5) Imprint's
3) Imprinted
i) Ignorar I) Ignorar todos
r) Sustituir R) Sustituir todos
a) Añadir l) Añadir minúsculas
b) Abortar x) Salir
?
Short Description: *PMPRINTF* debugger with PM viewer & programmer interfaces
1) IMPRINT 4) IMPRINTER
2) IMPRINTS 5) IMPRINT'S
3) IMPRINTED
i) Ignorar I) Ignorar todos
r) Sustituir R) Sustituir todos
a) Añadir l) Añadir minúsculas
b) Abortar x) Salir
?
Attachments (2)
Change History (22)
comment:1 by , 7 years ago
Cc: | added |
---|
follow-up: 3 comment:2 by , 7 years ago
by , 7 years ago
Attachment: | PMPrintf254.txt added |
---|
comment:3 by , 7 years ago
Replying to diver:
please add the sample file you test, so I see eventually the same.
OK, dug it again -- that was the nth file I tried to make sure the behavior is consistently wrong.
Anyway, you won't see exactly the same unless you set LANG=ES, or whatever (guessing here, I did nothing) -- test system is Spanish. Which reminds me, use the command line
aspell -l en -c <file>
for the English dictionaries :)
comment:4 by , 7 years ago
OK, actually looking at the sample output I pasted, I see the potential for confusion now -- "Archive Filename: PMPrintf254.zip", etc. is the first line in that file (a Hobbes upload template), so you might think I pasted output for several... weird operations because it is shown repeatedly? -- nope, single operation on a single text file -- bad sample choice -- my bad :)
comment:5 by , 7 years ago
I now tried with set lang=en_US and set Lang=de_CH and I can't reproduce what you see. For me all highlighted words can be replaced or ignored or added or....
On which OS did you try? eCS, ArcaOS? any special settings in config.sys?
comment:6 by , 7 years ago
No special settings that I can see, SET LANG=es_ES_EURO is there as expected. Test system is a Spanish MPC2 on a virtual machine.
I just tried SET LANG=EN before running ASpell -- replacement menu choices are in English now, and the problem remains unchanged.
comment:7 by , 7 years ago
Full English output sample with the same file:
Archive *Filename*: PMPrintf254.zip
1) File name 6) Film
2) File-name 7) Flange
3) Forename 8) Flume
4) Flame 9) Flannel
5) Flamer 0) Fulsome
i) Ignore I) Ignore all
r) Replace R) Replace all
a) Add l) Add Lower
b) Abort x) Exit
? I
Archive Filename: *PMPrintf*254.zip
1) Imprint 4) Imprinter
2) Imprints 5) Imprint's
3) Imprinted
i) Ignore I) Ignore all
r) Replace R) Replace all
a) Add l) Add Lower
b) Abort x) Exit
?
Short Description: *PMPRINTF* debugger with PM viewer & programmer interfaces
1) IMPRINT 4) IMPRINTER
2) IMPRINTS 5) IMPRINT'S
3) IMPRINTED
i) Ignore I) Ignore all
r) Replace R) Replace all
a) Add l) Add Lower
b) Abort x) Exit
? x
comment:9 by , 7 years ago
Can't do for now, sorry. Might try on an eCS 1.2mr later, but no guarantees.
comment:10 by , 7 years ago
Priority: | critical → Feedack pending |
---|---|
Type: | defect → task |
then we need some others which could test as well. As I use a 100% clean rpm env for developing and testing.
comment:11 by , 7 years ago
and if I'm not overlooking something it works like it should here.
btw what set term do you have? eventually adding your config.sys might give a hint
comment:12 by , 7 years ago
TERM is NULL (not even set), config.sys coming in a sec.
As for clean rpm systems, I don't think it gets cleaner than this. I deployed a new MCP2 on a virtual environment, downloaded ANPM and let it do its thing to install a Perl interpreter which does its job just fine -- ASpell got in as a side effect, and since it was there already, I decided to try it out to further help eFTE2 move forward.
I don't think I have any conflicting previous stuff in there, but I can start with a blank slate anytime anyway.
by , 7 years ago
Attachment: | CONFIG.SYS added |
---|
comment:13 by , 7 years ago
hmm how can term be NULL. As some rpm set this value.
anyway please give me the output of "yum list installed"
comment:14 by , 7 years ago
I just spotted and changed the COUNTRY.JP thing leftover from testing some Japanese stuff yesterday back to regular COUNTRY.SYS.
ASpell fails all the same.
I don't know about the term or who (didn't) set it, I'm just reporting.
Paquetes instalados
arcanoae-rel.i386 0.0.0-0.oc00 installed
ash.pentium4 0.0.1-1.oc00 installed
aspell.pentium4 0.60.6.1-2.oc00 installed
aspell-en.noarch 7.1-1 installed
aspell-es.noarch 1.11-1.oc00 installed
bash.i686 3.2.0-8.oc00 installed
bww-resources-rpm.noarch 1.1.0-3.oc00 installed
bzip2-libs.pentium4 1.0.6-6.oc00 installed
ca-certificates.noarch 2017.11-1.oc00 installed
coreutils.pentium4 8.26-2.oc00 installed
coreutils-common.pentium4 8.26-2.oc00 installed
cpio.pentium4 2.12-1.oc00 installed
cube.i386 2.6-5.oc00 installed
curl.pentium4 7.37.0-2.oc00 installed
dash.pentium4 0.5.9.1-1.oc00 installed
dash-sh.pentium4 0.5.9.1-1.oc00 installed
db4.pentium4 4.8.30-6.oc00 installed
db4-utils.pentium4 4.8.30-6.oc00 installed
emxrt.i386 0.9d-5.oc00 installed
expat.pentium4 2.1.0-13.oc00 installed
file-libs.pentium4 5.30-2.oc00 installed
gettext-legacy.pentium4 0.19.8.1-3.oc00 installed
gettext-libs.pentium4 0.19.8.1-3.oc00 installed
glib2.pentium4 2.33.12-2.oc00 installed
gmp.pentium4 5.0.2-2.oc00 installed
grep.pentium4 2.28-1.oc00 installed
gzip.pentium4 1.8-1.oc00 installed
info.pentium4 5.2-3.oc00 installed
klusrmgr.i686 1.1.2-1.oc00 installed
less.pentium4 481-3.oc00 installed
libc.i686 0.6.6-35.oc00 installed
libcurl.pentium4 7.37.0-2.oc00 installed
libcx.pentium4 0.6.0-1.oc00 installed
libgcc-fwd.pentium4 4.9.2.1-3.oc00 installed
libgcc1.pentium4 4.9.2.1-3.oc00 installed
libglib-2_0-0.pentium4 2.33.12-2.oc00 installed
libgmodule-2_0-0.pentium4 2.33.12-2.oc00 installed
libgobject-2_0-0.pentium4 2.33.12-2.oc00 installed
libgthread-2_0-0.pentium4 2.33.12-2.oc00 installed
libssp.pentium4 4.9.2.1-3.oc00 installed
libstdc++6.pentium4 4.9.2.1-3.oc00 installed
libxml2.pentium4 2.9.4-3.oc00 installed
lua-libs.pentium4 5.3.4-2 installed
mmap.pentium4 2:0.5-1.oc00 installed
ncurses.pentium4 5.9-1.oc00 installed
ncurses-base.pentium4 5.9-1.oc00 installed
ncurses-libs.pentium4 5.9-1.oc00 installed
netlabs-exp.i386 0.0.0-4.oc00 @netlabs-rel
netlabs-rel.i386 0.0.0-5.oc00 installed
nspr.pentium4 4.12.0-4.oc00 installed
nss.pentium4 3.23.0-4.oc00 installed
nss-softokn.pentium4 3.23.0-4.oc00 installed
nss-softokn-freebl.pentium4 3.23.0-4.oc00 installed
nss-util.pentium4 3.23.0-4.oc00 installed
openssl.pentium4 1.0.2k-1.oc00 installed
openssl-libs.pentium4 1.0.2k-1.oc00 installed
os2-base.pentium4 0.0.0-17.oc00 installed
os2-mpts.pentium4 0.0.0-2.oc00 installed
os2-release.noarch 00-2.oc00 installed
os2-rpm.noarch 0-5.oc00 installed
pcre.pentium4 8.12-2.oc00 installed
perl.pentium4 4:5.16.1-4 installed
perl-Carp.noarch 1.26-4 installed
perl-Filter.pentium4 1.40-4 installed
perl-Module-Pluggable.noarch 1:4.00-4 installed
perl-PathTools.pentium4 3.39.2-4 installed
perl-Pod-Escapes.noarch 1:1.04-4 installed
perl-Pod-Parser.noarch 1.51-4 installed
perl-Pod-Perldoc.noarch 3.17.00-4 installed
perl-Pod-Simple.noarch 1:3.20-4 installed
perl-Scalar-List-Utils.pentium4 1.25-4 installed
perl-Socket.pentium4 2.001-4 installed
perl-libs.pentium4 4:5.16.1-4 installed
perl-macros.pentium4 4:5.16.1-4 installed
perl-parent.noarch 1:0.225-4 installed
perl-threads.pentium4 1.86-4 installed
perl-threads-shared.pentium4 1.40-4 installed
popt.pentium4 1:1.15-5.oc00 installed
popt-data.pentium4 1:1.15-5.oc00 installed
popt-libs.pentium4 1:1.15-5.oc00 installed
pthread.pentium4 20151229-21.oc00 installed
python.pentium4 2.7.6-18.oc00 installed
python-libs.pentium4 2.7.6-18.oc00 installed
python-pycurl.pentium4 7.19.5.1-2.oc00 installed
python2-rpm.pentium4 4.13.0-17.oc00 installed
readline.pentium4 6.1-4.oc00 installed
rpm.pentium4 4.13.0-17.oc00 installed
rpm-build-libs.pentium4 4.13.0-17.oc00 installed
rpm-libs.pentium4 4.13.0-17.oc00 installed
rxcrypt.pentium4 1.0.0-1.oc00 installed
sed.pentium4 4.2.1-2.oc00 installed
sqlite.pentium4 3.7.2-5.oc00 installed
tcl.pentium4 1:8.5.9-3.oc00 installed
urlgrabber.noarch 3.10.1-10.oc00 installed
urpo.pentium4 20160630-12.oc00 installed
wpi4rpm.pentium4 0.9.7-1.oc00 installed
xz-legacy-4.pentium4 4.999.9beta-5.oc00.L installed
xz-libs.pentium4 5.2.3-2.oc00 installed
yum.pentium4 3.4.3-11.oc00 installed
yum-metadata-parser.pentium4 1.1.4-7.oc00 installed
yum-utils.noarch 1.1.31-3.oc00 installed
zlib.pentium4 1.2.11-2.oc00 installed
comment:15 by , 7 years ago
os2-base rpm sets some values. It seems the ANPM bootstrap doesn't set the config.sys stuff. I have no idea what ANPM does while installing the bootstrap.
please try "yum reinstall os2-base" and look for "set term=" in config.sys afterwards
comment:16 by , 7 years ago
Of course, no SET TERM, this fails:
[C:\]yum reinstall os2-base
Failed to set locale, defaulting to C
Setting up Reinstall Process
Resolving Dependencies
--> Running transaction check
---> Package os2-base.pentium4 0:0.0.0-17.oc00 will be reinstalled
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================
Package Arch Version Repository Size
===============================================================================
Reinstalling:
os2-base pentium4 0.0.0-17.oc00 netlabs-rel 14 k
Transaction Summary
===============================================================================
Reinstall 1 Package
Total size: 14 k
Installed size: 14 k
Is this ok [y/N]:y
Downloading Packages:
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Installing : os2-base-0.0.0-17.oc00.pentium4 1/1
Non-fatal POSTIN scriptlet failure in rpm package os2-base-0.0.0-17.oc00.pentium
4
error: Couldn't fork %post(os2-base-0.0.0-17.oc00.pentium4): No such file or dir
ectory
LIBC PANIC!!
LIBC fork: Child aborting fork()! rc=0xfffffffe
pid=0x0039 ppid=0x0037 tid=0x0001 slot=0x006a pri=0x0200 mc=0x0000 ps=0x0010
C:\USR\BIN\PYTHON2.7.EXE
Process dumping was disabled, use DUMPPROC / PROCDUMP to enable it.
Failed to remove transaction file /@unixroot/var/lib/yum/transaction-done.2017-1
2-21.12.41.23
Rpmdb checksum is invalid: dCDPT(pkg checksums): os2-base.pentium4 0:0.0.0-17.oc
00 - u
comment:17 by , 7 years ago
that's a known one see: http://trac.netlabs.org/rpm/ticket/252
you need to be in a subdir, then it works.
comment:18 by , 7 years ago
Not known to me :/
The thing installs now, and I get SET TERM=os2. Reboot test system, and ASpell seems to behave normally now -- output looks better than the sample above too (this should have been a dead giveaway, but I'm new to it as well).
Thank you, I think it's case closed until I can test the program properly and I bump into more stuff :)
comment:19 by , 7 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
please report this issue to AN, as it's their bootstrap which doesn't install things right.
If you feel we did a good job in supporting you, we would be glad, if you could sponsor our work. See https://www.bitwiseworks.com/shop
comment:20 by , 7 years ago
Very good job supporting a nobody like me, indeed -- I'll sure be more than glad to sponsor your work when someone sponsors mine, though -- I'm basically donating work hours to the community right now :)
And of course I'll be reporting the problem to AN today.
please add the sample file you test, so I see eventually the same.