Bug#600425: cdebconf: text frontend for selection isn't documented enough

2010-10-19 Thread Miguel Figueiredo
Hi,

untested, probably/surely incomplete and not working, just as an exercise:

===
--- debian/cdebconf-text-udeb.templates (revision 65058)
+++ debian/cdebconf-text-udeb.templates (working copy)
@@ -48,6 +48,11 @@
 # :sl4:
 _Description: Prompt: '%c' for help, default=%s 
 
+Template: debconf/text-prompt-default-multiselect
+Type: text
+# :sl4:
+_Description: Prompt: '%c' for help, default=%s, multiple choices separated 
by spaces  
+
 Template: debconf/cont-prompt
 Type: text
 # :sl4:


Index: src/modules/frontend/text/text.c
===
--- src/modules/frontend/text/text.c(revision 65058)
+++ src/modules/frontend/text/text.c(working copy)
@@ -432,8 +432,8 @@
 
   DISPLAY:
printlist (obj, q, count, choices_translated, tindex, selected);
-   printf(question_get_text(obj, debconf/text-prompt-default-string, 
-   Prompt: '%c' for help, default=%s ), CHAR_HELP, defval);
+   printf(question_get_text(obj, 
debconf/text-prompt-default-multiselect, 
+   Prompt: '%c' for help, default=%s, multiple choices separated 
by 
spaces ), CHAR_HELP, defval);
get_answer(answer, sizeof(answer));
if (answer[0] == CHAR_HELP  answer[1] == 0)
{

What is missing? THe message needs to be added also to a .pot?


-- 
Melhores cumprimentos/Best regards,

Miguel Figueiredo
http://www.DebianPT.org
A Segunda 18 Outubro 2010 23:16:43 Samuel Thibault você escreveu:
 Miguel Figueiredo, le Mon 18 Oct 2010 22:48:48 +0100, a écrit :
  i tried to reproduce it, i booted with DEBIAN_FRONTEND=text but everytime
  i get:
  
  Prompt '?' for help, default=1 10
  
  tasks 1 and 10 selected by default.
 
 Well, I'd say that's merely by luck :)
 For instance, if you boot in export mode you will get the additional
 locales question, where the issue is the same (and the default is
 empty).  Of course that's just an instance, there are probably a lot
 others.
 
 Just a side note: this is actually a bug concerning accessibility, for
 the cases where a linear text is way simpler for the screen reader to
 follow, and thus using the dialog frontend is not really an option.
 
 Samuel




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#600425: cdebconf: text frontend for selection isn't documented enough

2010-10-19 Thread Samuel Thibault
Miguel Figueiredo, le Mon 18 Oct 2010 23:59:31 +0100, a écrit :
 What is missing? THe message needs to be added also to a .pot?

AIUI, that's done by running debconf-updatepo from debian/

Samuel



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#600425: cdebconf: text frontend for selection isn't documented enough

2010-10-18 Thread Miguel Figueiredo
Hi,

i tried to reproduce it, i booted with DEBIAN_FRONTEND=text but everytime i 
get:

Prompt '?' for help, default=1 10

tasks 1 and 10 selected by default. 
After entering 8 9 10 at the prompt d-i installed the 3 tasks.

As the default suggests tasks are entered separated by spaces.
Mentioning that in the help would, indeed, be an improvement. 

Wishlist?

-- 
Melhores cumprimentos/Best regards,

Miguel Figueiredo
http://www.DebianPT.org
A Domingo 17 Outubro 2010 02:59:10 Samuel Thibault você escreveu:
 Package: cdebconf
 Version: 0.150
 Severity: normal
 
 Hello,
 
 When using the text frontend for e.g. tasksel, the way to select items
 is really clear: what is displayed is
 
 Choose software to install:
  1. Graphical desktop environment 5. File server 9. Laptop
  2. Web server 6. Mail server 10. Standard system utilities [*]
  3. Print server 7. SQL database
  4. DNS server 8. SSH server
 Prompt: '?' for help, default 10
 
 '?' gives
 
 KEYSTROKES:
  ? Display this help message
  ! Select an empty entry
 
 This doesn't explain how to select several items at a time.
 
 Samuel
 
 -- System Information:
 Debian Release: squeeze/sid
   APT prefers testing
   APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1,
 'experimental') Architecture: amd64 (x86_64)
 
 Kernel: Linux 2.6.35 (SMP w/2 CPU cores)
 Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
 Shell: /bin/sh linked to /bin/bash



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#600425: cdebconf: text frontend for selection isn't documented enough

2010-10-18 Thread Samuel Thibault
Miguel Figueiredo, le Mon 18 Oct 2010 22:48:48 +0100, a écrit :
 i tried to reproduce it, i booted with DEBIAN_FRONTEND=text but everytime i 
 get:
 
 Prompt '?' for help, default=1 10
 
 tasks 1 and 10 selected by default. 

Well, I'd say that's merely by luck :)
For instance, if you boot in export mode you will get the additional
locales question, where the issue is the same (and the default is
empty).  Of course that's just an instance, there are probably a lot
others.

Just a side note: this is actually a bug concerning accessibility, for
the cases where a linear text is way simpler for the screen reader to
follow, and thus using the dialog frontend is not really an option.

Samuel



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#600425: cdebconf: text frontend for selection isn't documented enough

2010-10-16 Thread Samuel Thibault
Package: cdebconf
Version: 0.150
Severity: normal

Hello,

When using the text frontend for e.g. tasksel, the way to select items
is really clear: what is displayed is

Choose software to install: 
 1. Graphical desktop environment 5. File server 9. Laptop  
 2. Web server 6. Mail server 10. Standard system utilities [*]
 3. Print server 7. SQL database  
 4. DNS server 8. SSH server  
Prompt: '?' for help, default 10  

'?' gives

KEYSTROKES: 
 ? Display this help message 
 ! Select an empty entry 

This doesn't explain how to select several items at a time.

Samuel

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.35 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

-- 
Samuel Thibault samuel.thiba...@fnac.net
/* Amuse the user in a SPARC fashion */
if (err) printk(
KERN_CRIT   ___ \n
KERN_CRIT   Your System ate a SPARC! Gah! \n
KERN_CRIT   --- \n
KERN_CRIT  \\   ^__^\n
KERN_CRIT   \\  (xx)\\___\n
KERN_CRIT  (__)\\   )\\/\\\n
KERN_CRIT   U  ||w |\n
KERN_CRIT  || ||\n);
(From linux/arch/parisc/kernel/traps.c:die_if_kernel())



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org