bibledit / cloud

Source code for Bibledit core library and Cloud binary
GNU General Public License v3.0
13 stars 3 forks source link

Privilege to apply stylesheet to Bible #859

Closed warpok closed 1 year ago

warpok commented 1 year ago

Today I taught Ninda how to put make and modify a new stylesheet. She named it Style sheet Ninda. As an example, I had her turn the verse numbers red. This was being done in her account. She was sharing her screen by Zoom and I was giving instructions. She was working in the cloud interface.

Now look what I find in my workspace here using Bibledit cloud: Screenshot 2023-01-12 9 34 17 AM

Ninda is not a manager. Screenshot 2023-01-12 9 39 05 AM

But she as a translator has changed my setting for which editor is used in my account. Screenshot 2023-01-12 9 39 51 AM

warpok commented 1 year ago

Surely you don't intend it to work this way, right?

teusbenschop commented 1 year ago

This is not intended to be so. That red squiggly line is not something that the stylesheet can generate, it cannot generate a red squiggly line below a word. Is that red squiggly line generated by her device, by the spelling checker or the grammar checker, or another checker?

warpok commented 1 year ago

Yes, Chrome browser on the Chrome book that I am using allows me to spell-check Indonesian. Phil

Phil Fields

USA: 479-524-7005

Indonesia and Whatsapp: +6285 770 333 734

303 Ryan Ct., Siloam Springs, AR 72761

albata.info dailybiblereading.info Firman Allah adalah Kunci Kehidupan

Pada tanggal Kam, 12 Jan 2023 pukul 13.19 Teus Benschop < @.***> menulis:

This is not intended to be so. That red squiggly line is not something that the stylesheet can generate, it cannot generate a red squiggly line below a word. Is that red squiggly line generated by her device, by the spelling checker or the grammar checker, or another checker?

— Reply to this email directly, view it on GitHub https://github.com/bibledit/cloud/issues/859#issuecomment-1380896958, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDSIJJBSHWRVV4SYYE3MVDWSBKN7ANCNFSM6AAAAAATZMVP2U . You are receiving this because you authored the thread.Message ID: @.***>

teusbenschop commented 1 year ago

This picture: Screenshot 2023-01-13 at 14 22 30 what is the device brand and operating system this occurs on?

warpok commented 1 year ago

This works on any Chrome browser on any device. The screenshot was made on my Asus Chromebook. But I have a Windows machine in my office as well, and it works the same way on it. There is a setting for which languages that the browser will spell check.

My team also loves how using the mouse in the Biblehub interlinear in Bibledit gives popup glosses to Greek and Hebrew words.

Phil

===

Pada tanggal Jum, 13 Jan 2023 pukul 07.23 Teus Benschop < @.***> menulis:

This picture: [image: Screenshot 2023-01-13 at 14 22 30] https://user-images.githubusercontent.com/1310167/212329906-0c41fd6f-374a-4cab-96ff-efaf0e162e0d.png what is the device brand and operating system this occurs on?

— Reply to this email directly, view it on GitHub https://github.com/bibledit/cloud/issues/859#issuecomment-1381845770, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDSIJK4EFVP7C4B6ZNK3CDWSFJMJANCNFSM6AAAAAATZMVP2U . You are receiving this because you authored the thread.Message ID: @.***>

teusbenschop commented 1 year ago

It is great that Chrome allows the user to do a spell check. But then if this is the case, then the red squiggly line is not related to Bibledit, right? If this is the case, can this bug be closed, or do you intent to suppress the red squiggly lines?

warpok commented 1 year ago

The bug has nothing to do with the squiggly lines. The bug is that when Ninda (a translator) makes a new style sheet then activated it for displaying our project, her style sheet (probably) got sent to all the translators and at least to me as the manager. It might be that her style sheet was contagious only to team members currently online. I didn't ask anyone else if they suddenly now have red superscript verse numbers. I will ask them.

teusbenschop commented 1 year ago

If Linda, a translator, creates a new stylesheet, then this stylesheet is immediately available to the other users. And if she selects this new stylesheet for displaying a given Bible, then this stylesheet is connected to that Bible. So anyone else who is going to display this Bible will automatically use the stylesheet connected to that Bible.

It is not a bug, it it is designed to be this way.

warpok commented 1 year ago

So Suzie Q, a translator, decides she wants large pink italic verse numbers, and large font purple text for headings. She makes her style sheet and chooses it for displaying the Bible, and all the members of the team suddenly get surprised when they start work the next morning. Sounds like a good joke!

Screenshot 2023-01-17 3 52 43 PM

I suggest that individual translators be allowed to be creative with their style sheet modifications and be permitted to display them. And if other translators like the modifications, they can choose to activate the same style sheet. A style sheet for editing is like the Preference settings. Not everyone wants the same thing.

If you want to opt for one-size-fits-all style sheets, then only the admin and managers should be able to set them for the group.

In our case, Ninda is making screenshots of the Psalms for sharing in Whatsapp groups. We want the appearance to be kind of like our typeset output. But I want some modifications as I am working on the Psalms now. I like to have \q2 set to italic font, so I can tell at a glance what is q1, q2, and q3.

So this is one reason to enable translator-level style sheets.

teusbenschop commented 1 year ago

I agree with your observation and suggestion to have a user-level stylesheet for displaying a Bible.

would you be able to update the title of this issue to reflect this? It's now given as a "bug", but it is not a bug since it was designed to be so.

warpok commented 1 year ago

Gladly! Done.

teusbenschop commented 1 year ago

Thinking about this for a bit more, I think this one is the easiest to implement:

If you want to opt for one-size-fits-all style sheets, then only the admin and managers should be able to set them for the group.

It looks like if someone wants to be creative with a stylesheet, then Bibledit is not intended for such creativity, and one can just be creative in other software environments. So if the manager decides to create or edit a stylesheet that suits the needs of this Bible, then it's a matter of discussing this with the team and settling on styles by democratic vote, and so then the manager can set a stylesheet for the whole project.

This would focus the main purpose of Bibledit, which is editing Bibles, rather than having fancy colours in the editor.

oreowarpok commented 1 year ago

Teus, I think that our conversation got side-tracked by several rabbit trails. 'Getting creative' with stylesheets was kind of a far out example.

Getting back to the point of this issue at the beginning, Ninda had a legitimate use for having a different stylesheet than me. She is sharing PDFs and screenshots of Bibledit in her work of managing our Whatsapp checking groups. On the other hand, I also have a legitimate use for having a different editing stylesheet. I am still working on Psalms, and I like to have the q2 indented lines with an obvious font difference, so that I can quickly see which lines are q1, q2, and q3. I also like to have big verse numbers while editing.

I have been mainly interested in the editor stylesheets. Now I wonder if the print stylesheets also allow for each user to set the printing stylesheet for the whole group. One problem is that I cannot tell the purpose a stylesheet was created, whether it is for editing or printing. In my mind, it would be good to keep them separate. [New issue?]

So yes, I still agree. Given the way Bibledit is set up, let's have stylesheets be editable only by managers and admin. Thanks for your thoughtful considering this.

teusbenschop commented 1 year ago

Thanks for getting the conversation back on topic again.

I did find out who exactly has the privileges to change the stylesheet used for editing a Bible and for exporting a Bible.

It appears that anyone who has "write" access to a Bible, can really exercise that write access, and therefore can change a stylesheet too.

Once someone has write access, that person can make any changes to the text in that Bible. But the other member of the team can give feedback on those changes, and so there's several mechanisms of control on what the user with write access does. In view of those many privileges that person has, it seems entirely logical that such a person, with write access to a Bible, can not only change the text of that Bible, but can also change the stylesheet of that Bible. Changing Bible text has more impact than changing a stylesheet. So why limiting those rights or privileges?

One of the main design philosophies of Bibledit is that this is some piece of software that is designed to hand responsibilities and trust to users. I guess taking away rights does not fit in this design philosophy.

If someone has been entrusted with translation privileges, that is not a small thing. Let's not take away from those entrusted privileges by limiting things that a translator easily should be able to handle.

oreowarpok commented 1 year ago

Everything is up to you. I respect you for all that you have done to make this program which has been so instrumental in the success of our translation team.

However, I must admit that I disagree on this point. It doesn't seem to me that your logic is consistent. For instance, you have made it so that the managers/admin can determine which team members can edit which books. Managers can determine what checks are performed, and I think I noted recently that ordinary translators cannot. Consultants can't change the text. I think that ordinary translators cannot delete a Bible project or add books to an existing project. Only managers and admin (I think) can do that. As a manager, I can determine if the translators can delete consultant notes or use advanced mode in the Cloud. How is it consistent with such limitations for translators to give them power over stylesheets?

Changing a stylesheet is not an intuitive process. Most of our members haven't messed with them. Why is it that even managers can't delete any stylesheet except the ones they create themselves. Only Admin can delete all user-edited stylesheets. No one can see who created a stylesheet, unless the user used his name in the name of the stylesheet. So currently, the situation with stylesheets is a little island of anarchy in the normally managed Bibledit interface.

However, it is unlikely that keeping the program the same will cause any serious problem. I will just tell all of our team to check with me about any changes they want to make in stylesheets.

teusbenschop commented 1 year ago

You have pointed out some inconsistency in the privileges assigned to the translators. I agree that there's some inconsistency there. Then to make it more consistent, there's two, or perhaps, more ways to do that.

  1. One can apply more limits to the privileges of the translators.
  2. One can remove some current limits allowing translators to do such tasks again.

Both cases will remove some inconsistencies, and perhaps add some inconsistencies again.

Bibledit as it was designed gives more freedoms to the user rather than less freedoms.

oreowarpok commented 1 year ago

Great!

After I wrote to you, I thought of a good way to make the change and still allow flexibility in the freedoms given to translators. It would be to add a checkbox for Can edit stylesheets to Settings > Users > edit (in the Privileges column).

You could make the default to be on (according to your preference), or off (according to mine). ;-)

teusbenschop commented 1 year ago

This approach sounds reasonable.

teusbenschop commented 1 year ago

The action of editing a stylesheet is already a privileged action. Someone who created the stylesheet automatically receives the privilege to also edit it. This is natural and looks consistent.

The only privilege that now remains to be controlled is the action to apply a stylesheet to a Bible.

The difference is to "edit" it, or to "apply" it.

Therefore any code changes made here only refer to applying the stylesheet to a Bible.

teusbenschop commented 1 year ago

Finally an Ubuntu package for bibledit-cloud was built, and is available as normal. The version is 5.0.996, see the PPA at https://code.launchpad.net/~bibledit/+archive/ubuntu/ppa