Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Semantic Differential right answer width problem with Unicode (?)

  • TooNice
  • TooNice's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 3 months ago - 9 years 3 months ago #115760 by TooNice
Well, I am not 100% sure it is to do with Unicode, but when I am using Japanese/Chinese characters, it seems that the answer in the far right column only use one or two character(s) per line in that cell. As follows:



As you can see, in the first array, in English, everything looks fine, but the second array has that issue. It is only cosmetic, but it would still be nice to be able to fix it.

This is on Version 2.00+ Build 131107. Base language for the survey is Japanese if that matters.

Thanks.

Edit: It seems the issue is caused by full width and half-width characters:



I used half-width katakana in the first row in the first row and everything is fine. However full-width alphabet in the second column has the same issue.
Last edit: 9 years 3 months ago by TooNice.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 3 months ago #115764 by tpartner
The browser interprets those as separate words so allows line-breaks. The only way to fix it would be to absolutely define the width of those elements with CSS.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 3 months ago #115767 by DenisChenu
And try another template too : maybe citronade ?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • TooNice
  • TooNice's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 3 months ago - 9 years 3 months ago #115768 by TooNice
Thanks for the reply. Would it be possible to absolutely define the width of those elements of only the last column? Or perhaps the first and the last? And how could I do this (I am a beginner)?

Thanks.

Edit:

I just gave Citronade a go, but it is mostly the same (instead of two characters per line, it is now a single character per line). Will try a few other templates just in case there is one that works.

Edit 2:

Changing templates does not seem to work. And it does seem that a new word introduces a line break each time (I just tested with just in English), but I wonder why it is set to behave in this way when the left column does not behave in such manner.
Last edit: 9 years 3 months ago by TooNice.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 3 months ago #115781 by tpartner

Would it be possible to absolutely define the width of those elements of only the last column? Or perhaps the first and the last?

Try adding something like this to the end of template.css (replacing "12345" with your question ID )

Code:
 
#question12345 table.subquestions-list {
  width: 90% !important;
}
 
#question12345 table.subquestions-list col {
  width: auto !important;
}
 
#question12345 table.subquestions-list thead td {
  width: 25%;
}
 
#question12345 table.subquestions-list thead th {
  width: 10%;
}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 3 months ago - 9 years 3 months ago #115801 by DenisChenu

TooNice wrote: Thanks for the reply. Would it be possible to absolutely define the width of those elements of only the last column? Or perhaps the first and the last? And how could I do this (I am a beginner)?

+

TooNice wrote: Changing templates does not seem to work. And it does seem that a new word introduces a line break each time (I just tested with just in English), but I wonder why it is set to behave in this way when the left column does not behave in such manner.

>hat is your LimeSUrvey version and build number ?

WIth the last build : last coluln have same width than first.
Code:
<colgroup class="col-responses">
  <col width="10%" class="col-answers">
<col width="13.3%" class="odd">
<col width="13.3%" class="even">
<col width="13.3%" class="odd">
<col width="13.3%" class="even">
<col width="13.3%" class="odd">
<col width="10%" class="answertextright even">
  </colgroup>
And it can be set with (Sub) question width

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Last edit: 9 years 3 months ago by DenisChenu.
The topic has been locked.
  • TooNice
  • TooNice's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 3 months ago #115823 by TooNice
@tpartner: Hmm, I just tried it, making sure that the question ID is adjusted accordingly, but it did not work.

@DenisChenu: Which file is the following code in?

I am using Version 2.00+ Build 131107. Having a bit of trouble with ComfortUpdate, I know there is a fix for that, but I don't fully understand what I need to do, and I am only having problem with this issue, and I really need to get my current survey up soon, I'd rather not make any big changes (to avoid making a mistake that would be time consuming to fix).
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 3 months ago #115824 by tpartner

Hmm, I just tried it, making sure that the question ID is adjusted accordingly, but it did not work.

Can you activate a test survey for us to see?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • TooNice
  • TooNice's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 3 months ago - 9 years 3 months ago #115825 by TooNice
cvictor.com/survey01/index.php/395714/lang-ja

(I added new words in first question to make sure that it is the line break are caused by additional words)

Edit: Just to make sure I didn't misunderstand the instructions..





(I also made sure that the template is selected)
Last edit: 9 years 3 months ago by TooNice. Reason: Additional info
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 3 months ago #115826 by tpartner
Ah, in that version, change "table.subquestions-list" to "table.subquestion-list".

Code:
#question150 table.subquestion-list {
  width: 90% !important;
}
 
#question150 table.subquestion-list col {
  width: auto !important;
}
 
#question150 table.subquestion-list thead td {
  width: 25%;
}
 
#question150 table.subquestion-list thead th {
  width: 10%;
}


Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: TooNice
The topic has been locked.
  • TooNice
  • TooNice's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 3 months ago #115828 by TooNice
That did it! Thanks! Is the previous solution for version 2.05, or is that version free from this issue?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 3 months ago #115830 by tpartner
My original code was for 2.05.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose