|
|
#1 |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,018
Karma: 30277294
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
half star
Anyone ever seen unicode for half stars - I looked high and low, babblemap, w3, fileinfo etc. 'Course my eyes ain't what they used to be either.
BR Last edited by BetterRed; 09-28-2016 at 02:21 AM. |
|
|
|
|
|
#2 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
You mean a star cut in half horizontal or vertical? As far as I know it isn't there. I have never seen it.
|
|
|
|
| Advert | |
|
|
|
|
#3 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,763
Karma: 24088559
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
If you don't want to use images, you could: a) use a fraction glyph: ★★★★½ b) use a white star as a half star: ★★★★☆ In case you don't see the stars, here's their Unicode information: ★ Unicode Character 'BLACK STAR' (U+2605) ★ ☆ Unicode Character 'WHITE STAR' (U+2606) ☆ |
|
|
|
|
|
|
#4 | |
|
You kids get off my lawn!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,220
Karma: 73492664
Join Date: Aug 2007
Location: Columbus, Ohio
Device: Oasis 2 and Libra H2O and half a dozen older models I can't let go of
|
Quote:
|
|
|
|
|
|
|
#5 |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,018
Karma: 30277294
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Thanks guys - The question came to me as a result of calibre's recent support for half star ratings as in
I assumed the full star was Black Star (U+2605) and the half star was - good question. I assumed it was hidden in a corner I couldn't see. Maybe Kovid has pre-empted acceptance of Ken Shirriff's proposal and he's using the HalfStarDemo.ttf - that might be it, the timing fits. He's had a lot of requests for half-stars. BR |
|
|
|
| Advert | |
|
|
|
|
#6 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,763
Karma: 24088559
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Here's a proof of concept code: Spoiler:
Here's what it looks like in Sigil (and Calibre):
|
|
|
|
|
|
|
#7 |
|
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,397
Karma: 20212733
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Neat - Thanks Doitsu!
I fiddled with your code and got it to show the left half of the star black with the right half missing if anyone is interested. (edit) I also changed the color from white to transparent so it'll work on any background color. Spoiler:
(edit-edit) You can change how much of the star is visible by changing the "width" (.25em for 1/4 star, .75em for 3/4 star) Last edited by Turtle91; 09-28-2016 at 10:53 AM. |
|
|
|
|
|
#8 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,686
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Peeking the code and the repository, I think the answer is more along the line of a new font than a specific css.
|
|
|
|
|
|
#9 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
I made a component for wpf for this a while back...
|
|
|
|
|
|
#10 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre uses the 1/2 unicode glyph: ★★★★½ alongwith a custom font to render it as a half star.
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Custom Column for Half-Star Ratings | Loosheesh | Calibre | 2 | 09-14-2016 02:45 PM |
| Screen half-broken, reading from other half | Freet | Sony Reader Dev Corner | 1 | 07-31-2013 07:52 AM |
| Harvard creates cyborg flesh that’s half man, half machine | xg4bx | Lounge | 1 | 09-02-2012 10:58 PM |
| [O'Reilly] "5 Star" rated eBooks half price expires August 16, 2012 at 11:59pm PT | Cyberman tM | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 08-10-2012 08:27 AM |
| half of my screen is blank and the other half is stuck in the USB condition. | modsoul | Sony Reader | 1 | 11-04-2007 11:03 AM |