[Xerte-dev] Re: Testing of 1.8/2.18 (buttons)

Julian Tenney Julian.Tenney at nottingham.ac.uk
Mon Apr 2 16:51:03 BST 2012


You'll need to find a library to do it, and even then, on different devices, you won't get a good result, so it's probably not worth it. I think Flash could only do it because it knew how it was going to render the fonts. I bet you Arial 10pt is different on different devices running different resolutions, and mobiles have some other dpi thing going on with respect to resolution / screen size.

-----Original Message-----
From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat Lockley
Sent: 02 April 2012 16:49
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Testing of 1.8/2.18 (buttons)

probably, but i don't want to spend ages on it, maybe an hour tops, so
it might be which ever is easiest (and if your text don't fit, you can
shrink it)

On Mon, Apr 2, 2012 at 4:35 PM, Julian Tenney
<Julian.Tenney at nottingham.ac.uk> wrote:
> Can you measure text in a given size / font in javascript? So given a string, you can work out how many pixels is needed? Flash had getTextExtent which was useful for making sure everything sizes nicely.
>
> -----Original Message-----
> From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat Lockley
> Sent: 02 April 2012 13:22
> To: For Xerte technical developers
> Subject: [Xerte-dev] Re: Testing of 1.8/2.18 (buttons)
>
> it's not much harder, but I am happy to go with which ever option.
>
> I would agree in different languages the buttons change length - but
> the buttons are squeezed in pretty tightly - so you might have to have
> some buttons with smaller text?
>
> On Mon, Apr 2, 2012 at 1:19 PM, Tom Reijnders <reijnders at tor.nl> wrote:
>> Come on...., this is such a standard technique....
>>
>> Op 2-4-2012 13:45, Pat Lockley schreef:
>>
>>> sections will make the HTML a load harder because you'll be setting
>>> three backgrounds?
>>>
>>> On Mon, Apr 2, 2012 at 12:41 PM, Julian Tenney
>>> <Julian.Tenney at nottingham.ac.uk>  wrote:
>>>>
>>>> Four states for each button?
>>>>
>>>> Normal
>>>> Click
>>>> Off
>>>> Disabled
>>>>
>>>> I'll do the sections approach if that's OK
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: xerte-dev-bounces at lists.nottingham.ac.uk
>>>> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Tom Reijnders
>>>> Sent: 02 April 2012 12:38
>>>> To: For Xerte technical developers
>>>> Subject: [Xerte-dev] Re: Testing of 1.8/2.18 (buttons)
>>>>
>>>> Or a left side, middle (that can be stretched) and right side...
>>>>
>>>> There are a few other places as well, like the login button...
>>>>
>>>> Op 2-4-2012 13:33, Julian Tenney schreef:
>>>>>
>>>>> These being the buttons for the top row of the workspace?
>>>>>
>>>>> -----Original Message-----
>>>>> From: xerte-dev-bounces at lists.nottingham.ac.uk
>>>>> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat Lockley
>>>>> Sent: 02 April 2012 12:31
>>>>> To: For Xerte technical developers
>>>>> Subject: [Xerte-dev] Re: Testing of 1.8/2.18 (buttons)
>>>>>
>>>>> The same size as they are now really
>>>>>
>>>>> On Mon, Apr 2, 2012 at 12:20 PM, Julian Tenney
>>>>> <Julian.Tenney at nottingham.ac.uk>    wrote:
>>>>>>>
>>>>>>> Can Nottingham provide blank buttons?
>>>>>>
>>>>>> You need one, or several sizes?
>>>>>>
>>>>>> -----Original Message-----
>>>>>> From: xerte-dev-bounces at lists.nottingham.ac.uk
>>>>>> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat Lockley
>>>>>> Sent: 02 April 2012 12:11
>>>>>> To: For Xerte technical developers
>>>>>> Subject: [Xerte-dev] Re: Testing of 1.8/2.18 (buttons)
>>>>>>
>>>>>> Change the file then for that one :)
>>>>>>
>>>>>> Also should they be prefixed INDEX_ ? seems a good policy
>>>>>>
>>>>>> The label is a resource, but they'd need to be some JS work to handle
>>>>>> "disabling" the button
>>>>>>
>>>>>> Can Nottingham provide blank buttons?
>>>>>>
>>>>>> On Mon, Apr 2, 2012 at 11:38 AM, Tom Reijnders<reijnders at tor.nl>
>>>>>>  wrote:
>>>>>>>
>>>>>>> We/I can create blank buttons.... than, the label is just another
>>>>>>> resource
>>>>>>> in one of the inc files. Correct?
>>>>>>>
>>>>>>> Ehmm... I would say, yes, dow whatever is the simplest, but, ehmm,
>>>>>>> you're
>>>>>>> still the expert on that!  I am happy to help!
>>>>>>>
>>>>>>> Generating a translation of the inc files workes very smoothly!
>>>>>>>
>>>>>>> We have a Dutch XOT up and running because of that.
>>>>>>>
>>>>>>> Only the index.inc (rootlevel) caused some issues, because it breaks
>>>>>>> the
>>>>>>> pattern. The defines for the LOGIN_AREA, USERNAME, etc uses single
>>>>>>> quotes in
>>>>>>> stead of double quotes.... That breaks my parser!!!
>>>>>>>
>>>>>>> Tom
>>>>>>>
>>>>>>> Op 2-4-2012 12:33, Pat Lockley schreef:
>>>>>>>
>>>>>>>> we don't have "blank" buttons though - with those we could do it.
>>>>>>>>
>>>>>>>> Drupal and WordPress use CSS to make the button - I am happy to go
>>>>>>>> with whatever is simple
>>>>>>>>
>>>>>>>> On Mon, Apr 2, 2012 at 11:29 AM, Tom Reijnders<reijnders at tor.nl>
>>>>>>>>  wrote:
>>>>>>>>>
>>>>>>>>> yes, we could just use links of course, but it is doable (I've seen
>>>>>>>>> this
>>>>>>>>> working on joomla through css tricks on a HTML link)
>>>>>>>>>
>>>>>>>>> Op 2-4-2012 12:16, Pat Lockley schreef:
>>>>>>>>>>
>>>>>>>>>> Hello,
>>>>>>>>>>
>>>>>>>>>> No work has happened in index.php to allow for language detection
>>>>>>>>>> yet.
>>>>>>>>>> Does the flash load when the preview / play fails? Fiddler showing
>>>>>>>>>> anything?
>>>>>>>>>>
>>>>>>>>>> I would get rid of the buttons and just use links now (for the sake
>>>>>>>>>> of
>>>>>>>>>> simplicity).
>>>>>>>>>>
>>>>>>>>>> Pat
>>>>>>>>>>
>>>>>>>>>> On Mon, Apr 2, 2012 at 10:59 AM, Tom Reijnders<reijnders at tor.nl>
>>>>>>>>>>   wrote:
>>>>>>>>>>>
>>>>>>>>>>> We (Inge and I) finished the first round of the Dutch translation.
>>>>>>>>>>>
>>>>>>>>>>> - I installed a fresh xot from svn trunk
>>>>>>>>>>> - I copied an existing xot database (1.7) as the basis
>>>>>>>>>>> - I copied all the USER_FILES and the templates and
>>>>>>>>>>> parent_templates of
>>>>>>>>>>> the
>>>>>>>>>>> live xot
>>>>>>>>>>> - I 'upgraded' all the parent_templates by copying the models,
>>>>>>>>>>> thumbs
>>>>>>>>>>> and
>>>>>>>>>>> generated xwd;s from the page based xwd's
>>>>>>>>>>>
>>>>>>>>>>> I have not been able to do very much with it just yet, but I
>>>>>>>>>>> already
>>>>>>>>>>> have
>>>>>>>>>>> a
>>>>>>>>>>> few observations:
>>>>>>>>>>>
>>>>>>>>>>> 1. The language selection has to be sorted out
>>>>>>>>>>> 2. We should use one mechanism for the language parameter, ether
>>>>>>>>>>> 'en',
>>>>>>>>>>> 'nl',
>>>>>>>>>>>   etc or 'en-gb', 'nl-nl' etc.
>>>>>>>>>>> 3. The first tests show, that you can edit existing (upgraded)
>>>>>>>>>>> LO's
>>>>>>>>>>> 4. I can't preview or run them, the browser blocks (The first page
>>>>>>>>>>> loads,
>>>>>>>>>>> but after that I can't do anything)
>>>>>>>>>>>
>>>>>>>>>>> If anyone wants to have a peek, I'll give you the URL and the
>>>>>>>>>>> login
>>>>>>>>>>> credentials by PM.
>>>>>>>>>>>
>>>>>>>>>>> Tom
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> --
>>>>>>>>>>>
>>>>>>>>>>> Tom Reijnders
>>>>>>>>>>> TOR Informatica
>>>>>>>>>>> Chopinlaan 27
>>>>>>>>>>> 5242HM Rosmalen
>>>>>>>>>>> Tel: 073 5226191
>>>>>>>>>>> Fax: 073 5226196
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Xerte-dev mailing list
>>>>>>>>>>> Xerte-dev at lists.nottingham.ac.uk
>>>>>>>>>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>>>>>>>>>>>
>>>>>>>>>>> This message and any attachment are intended solely for the
>>>>>>>>>>> addressee
>>>>>>>>>>> and
>>>>>>>>>>> may contain confidential information. If you have received this
>>>>>>>>>>> message
>>>>>>>>>>> in
>>>>>>>>>>> error, please send it back to me, and immediately delete it.
>>>>>>>>>>> Please
>>>>>>>>>>> do
>>>>>>>>>>> not
>>>>>>>>>>> use, copy or disclose the information contained in this message or
>>>>>>>>>>> in
>>>>>>>>>>> any
>>>>>>>>>>> attachment.  Any views or opinions expressed by the author of this
>>>>>>>>>>> email
>>>>>>>>>>> do
>>>>>>>>>>> not necessarily reflect the views of the University of Nottingham.
>>>>>>>>>>>
>>>>>>>>>>> This message has been checked for viruses but the contents of an
>>>>>>>>>>> attachment
>>>>>>>>>>> may still contain software viruses which could damage your
>>>>>>>>>>> computer
>>>>>>>>>>> system:
>>>>>>>>>>> you are advised to perform your own checks. Email communications
>>>>>>>>>>> with
>>>>>>>>>>> the
>>>>>>>>>>> University of Nottingham may be monitored as permitted by UK
>>>>>>>>>>> legislation.
>>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Xerte-dev mailing list
>>>>>>>>>> Xerte-dev at lists.nottingham.ac.uk
>>>>>>>>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>>>>>>>>>> This message and any attachment are intended solely for the
>>>>>>>>>> addressee
>>>>>>>>>> and
>>>>>>>>>> may contain confidential information. If you have received this
>>>>>>>>>> message
>>>>>>>>>> in
>>>>>>>>>> error, please send it back to me, and immediately delete it.
>>>>>>>>>> Please do
>>>>>>>>>> not
>>>>>>>>>> use, copy or disclose the information contained in this message or
>>>>>>>>>> in
>>>>>>>>>> any
>>>>>>>>>> attachment.  Any views or opinions expressed by the author of this
>>>>>>>>>> email
>>>>>>>>>> do
>>>>>>>>>> not necessarily reflect the views of the University of Nottingham.
>>>>>>>>>>
>>>>>>>>>> This message has been checked for viruses but the contents of an
>>>>>>>>>> attachment
>>>>>>>>>> may still contain software viruses which could damage your computer
>>>>>>>>>> system:
>>>>>>>>>> you are advised to perform your own checks. Email communications
>>>>>>>>>> with
>>>>>>>>>> the
>>>>>>>>>> University of Nottingham may be monitored as permitted by UK
>>>>>>>>>> legislation.
>>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> --
>>>>>>>>>
>>>>>>>>> Tom Reijnders
>>>>>>>>> TOR Informatica
>>>>>>>>> Chopinlaan 27
>>>>>>>>> 5242HM Rosmalen
>>>>>>>>> Tel: 073 5226191
>>>>>>>>> Fax: 073 5226196
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> Xerte-dev mailing list
>>>>>>>>> Xerte-dev at lists.nottingham.ac.uk
>>>>>>>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Xerte-dev mailing list
>>>>>>>> Xerte-dev at lists.nottingham.ac.uk
>>>>>>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>>>>>>>> This message and any attachment are intended solely for the addressee
>>>>>>>> and
>>>>>>>> may contain confidential information. If you have received this
>>>>>>>> message in
>>>>>>>> error, please send it back to me, and immediately delete it.   Please
>>>>>>>> do not
>>>>>>>> use, copy or disclose the information contained in this message or in
>>>>>>>> any
>>>>>>>> attachment.  Any views or opinions expressed by the author of this
>>>>>>>> email do
>>>>>>>> not necessarily reflect the views of the University of Nottingham.
>>>>>>>>
>>>>>>>> This message has been checked for viruses but the contents of an
>>>>>>>> attachment
>>>>>>>> may still contain software viruses which could damage your computer
>>>>>>>> system:
>>>>>>>> you are advised to perform your own checks. Email communications with
>>>>>>>> the
>>>>>>>> University of Nottingham may be monitored as permitted by UK
>>>>>>>> legislation.
>>>>>>>>
>>>>>>> --
>>>>>>> --
>>>>>>>
>>>>>>> Tom Reijnders
>>>>>>> TOR Informatica
>>>>>>> Chopinlaan 27
>>>>>>> 5242HM Rosmalen
>>>>>>> Tel: 073 5226191
>>>>>>> Fax: 073 5226196
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Xerte-dev mailing list
>>>>>>> Xerte-dev at lists.nottingham.ac.uk
>>>>>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>>>>>>
>>>>>> _______________________________________________
>>>>>> Xerte-dev mailing list
>>>>>> Xerte-dev at lists.nottingham.ac.uk
>>>>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>>>>>>
>>>>>> _______________________________________________
>>>>>> Xerte-dev mailing list
>>>>>> Xerte-dev at lists.nottingham.ac.uk
>>>>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>>>>>> This message and any attachment are intended solely for the addressee
>>>>>> and may contain confidential information. If you have received this message
>>>>>> in error, please send it back to me, and immediately delete it.   Please do
>>>>>> not use, copy or disclose the information contained in this message or in
>>>>>> any attachment.  Any views or opinions expressed by the author of this email
>>>>>> do not necessarily reflect the views of the University of Nottingham.
>>>>>>
>>>>>> This message has been checked for viruses but the contents of an
>>>>>> attachment
>>>>>> may still contain software viruses which could damage your computer
>>>>>> system:
>>>>>> you are advised to perform your own checks. Email communications with
>>>>>> the
>>>>>> University of Nottingham may be monitored as permitted by UK
>>>>>> legislation.
>>>>>
>>>>> _______________________________________________
>>>>> Xerte-dev mailing list
>>>>> Xerte-dev at lists.nottingham.ac.uk
>>>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>>>>>
>>>>> _______________________________________________
>>>>> Xerte-dev mailing list
>>>>> Xerte-dev at lists.nottingham.ac.uk
>>>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>>>>> This message and any attachment are intended solely for the addressee
>>>>> and may contain confidential information. If you have received this message
>>>>> in error, please send it back to me, and immediately delete it.   Please do
>>>>> not use, copy or disclose the information contained in this message or in
>>>>> any attachment.  Any views or opinions expressed by the author of this email
>>>>> do not necessarily reflect the views of the University of Nottingham.
>>>>>
>>>>> This message has been checked for viruses but the contents of an
>>>>> attachment
>>>>> may still contain software viruses which could damage your computer
>>>>> system:
>>>>> you are advised to perform your own checks. Email communications with
>>>>> the
>>>>> University of Nottingham may be monitored as permitted by UK
>>>>> legislation.
>>>>>
>>>> --
>>>> --
>>>>
>>>> Tom Reijnders
>>>> TOR Informatica
>>>> Chopinlaan 27
>>>> 5242HM Rosmalen
>>>> Tel: 073 5226191
>>>> Fax: 073 5226196
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Xerte-dev mailing list
>>>> Xerte-dev at lists.nottingham.ac.uk
>>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>>>>
>>>> _______________________________________________
>>>> Xerte-dev mailing list
>>>> Xerte-dev at lists.nottingham.ac.uk
>>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>>>
>>> _______________________________________________
>>> Xerte-dev mailing list
>>> Xerte-dev at lists.nottingham.ac.uk
>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>>> This message and any attachment are intended solely for the addressee and
>>> may contain confidential information. If you have received this message in
>>> error, please send it back to me, and immediately delete it.   Please do not
>>> use, copy or disclose the information contained in this message or in any
>>> attachment.  Any views or opinions expressed by the author of this email do
>>> not necessarily reflect the views of the University of Nottingham.
>>>
>>> This message has been checked for viruses but the contents of an
>>> attachment
>>> may still contain software viruses which could damage your computer
>>> system:
>>> you are advised to perform your own checks. Email communications with the
>>> University of Nottingham may be monitored as permitted by UK legislation.
>>>
>>
>> --
>> --
>>
>> Tom Reijnders
>> TOR Informatica
>> Chopinlaan 27
>> 5242HM Rosmalen
>> Tel: 073 5226191
>> Fax: 073 5226196
>>
>>
>>
>> _______________________________________________
>> Xerte-dev mailing list
>> Xerte-dev at lists.nottingham.ac.uk
>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev

_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev



More information about the Xerte-dev mailing list